userver: meta Namespace Reference
Loading...
Searching...
No Matches
meta Namespace Reference

Detailed Description

Metaprogramming utilities, concepts, and type traits helpers.

Typedefs

template<IsMap T>
using MapKeyType = typename T::key_type
 
template<IsMap T>
using MapValueType = typename T::mapped_type
 
template<IsRange T>
using RangeValueType = impl::RangeValueType<T>
 

Functions

template<typename T>
auto Inserter (T &container)
 Returns default inserter for a container.
 

Typedef Documentation

◆ MapKeyType

template<IsMap T>
using meta::MapKeyType = typename T::key_type

Definition at line 74 of file meta.hpp.

◆ MapValueType

template<IsMap T>
using meta::MapValueType = typename T::mapped_type

Definition at line 77 of file meta.hpp.

◆ RangeValueType

template<IsRange T>
using meta::RangeValueType = impl::RangeValueType<T>
Warning
Use std::ranges::range_value_t instead of this type, except possibly in common headers where compilation time is a concern.

Definition at line 82 of file meta.hpp.

Function Documentation

◆ Inserter()

template<typename T>
auto meta::Inserter ( T & container)

Returns default inserter for a container.

Definition at line 129 of file meta.hpp.