Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah-msg.H File Reference

Message builder for constructing formatted strings. More...

#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
Include dependency graph for ah-msg.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Aleph::detail::is_stream_insertable< T, typename >
 
struct  Aleph::detail::is_stream_insertable< T, std::void_t< decltype(std::declval< std::ostringstream & >()<< std::declval< T >())> >
 
struct  Aleph::is_stream_insertable< T, typename >
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 
namespace  Aleph::detail
 

Functions

void Aleph::detail::build_msg_impl (std::ostringstream &)
 
template<typename T , typename... Args>
void Aleph::detail::build_msg_impl (std::ostringstream &stream, T &&value, Args &&... rest)
 
template<typename... Args>
std::string Aleph::build_string (Args &&... args)
 Concatenate arbitrary streamable arguments into a string.
 
template<typename... Args>
std::string Aleph::build_error_msg (Args &&... args)
 Alias kept for backwards compatibility with historic API.
 

Variables

template<typename... Args>
constexpr bool Aleph::detail::are_stream_insertable_v
 
template<typename... Args>
constexpr bool Aleph::are_stream_insertable_v
 

Detailed Description

Message builder for constructing formatted strings.

Provides MSG class for building messages using stream-style insertion operators. Useful for constructing error messages and log entries with mixed types.

Author
Leandro Rabindranath León

Definition in file ah-msg.H.