Cbeam
Loading...
Searching...
No Matches
map.hpp File Reference
#include <cbeam/convert/string.hpp>
#include <ostream>
#include <string>
#include <type_traits>
Include dependency graph for map.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cbeam::convert::is_nested_map< T, typename >
 Type trait to check if a given type is a nested map. More...
 
struct  cbeam::convert::is_nested_map< T, std::void_t< typename T::nested_tables, typename T::table_of_values > >
 
struct  cbeam::convert::has_key_and_mapped_type< T, typename >
 Type trait to check if a given type supports key_type and mapped_type, similar to std::map. More...
 
struct  cbeam::convert::has_key_and_mapped_type< T, std::void_t< typename T::key_type, typename T::mapped_type > >
 

Namespaces

namespace  cbeam
 The root namespace for the Cbeam library. This namespace unifies cross-platform utilities for concurrency, memory management, file handling, logging, serialization, and more. Its purpose is to provide a cohesive collection of modern C++ components that address common system-level and application-level tasks, while promoting thread-safety, interprocess communication, and stable resource handling across varied platform APIs.
 
namespace  cbeam::convert
 Contains conversion utilities to transform data between different formats and types. Functions here handle string conversions, encoding manipulations, and the creation of string representations for various C++ types. They help ensure consistent serialization and text output across the library.
 

Functions

template<typename T>
std::enable_if< has_key_and_mapped_type< T >::value &&!is_nested_map< T >::value, std::string >::type cbeam::convert::to_string (const T &table, const int indentation)
 Converts a container supporting key_type and mapped_type to a formatted std::string.
 
template<typename T>
std::enable_if< has_key_and_mapped_type< T >::value &&!is_nested_map< T >::value, std::string >::type cbeam::convert::to_string (const T &table)
 Converts a container supporting key_type and mapped_type to a formatted std::string.