mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
any_map.h File Reference

Containes the implementation of any_map class and related type definitions. More...

#include <map>
#include <unordered_map>
#include <experimental/any>
#include <servlet/lib/optional.h>

Go to the source code of this file.

Classes

class  servlet::any_map< _MapType >
 Covenience class on top of associative container to facilitate work with value type std::any. More...
 

Typedefs

template<typename _Key = std::string, typename _Compare = std::less<>, typename _Alloc = std::allocator<std::pair<const _Key, any>>>
using servlet::tree_any_value_map = any_map< std::map< _Key, any, _Compare, _Alloc >>
 Type definition for any_map inherited from std::map
 
using servlet::tree_any_map = any_map< std::map< std::string, any, std::less<>>>
 Type definition for any_map inherited from std::map and with the key type std::string
 
template<typename _Key = std::string, typename _Hash = std::hash<_Key>, typename _Pred = std::equal_to<_Key>, typename _Alloc = std::allocator<std::pair<const _Key, any>>>
using servlet::hash_any_value_map = any_map< std::unordered_map< _Key, any, _Hash, _Pred, _Alloc >>
 Type definition for any_map inherited from std::unordered_map
 
using servlet::hash_any_map = any_map< std::unordered_map< std::string, any >>
 Type definition for any_map inherited from std::unordered_map and with the key type std::string
 

Detailed Description

Containes the implementation of any_map class and related type definitions.