kumi v3.1.0
Exquisite Epidote
 
Loading...
Searching...
No Matches
kumi::field_name< ID > Class Template Reference

Named wrapper used to instantiate a kumi::field_capture. More...

#include <kumi/utils/ct_helpers.hpp>

Detailed Description

template<str ID>
class kumi::field_name< ID >

Named wrapper used to instantiate a kumi::field_capture.

kumi::field_name provides a way to instantiate a kumi::field_capture using a user defined literal prefix.

Template Parameters
IDa compile time string that is used to name the field.

Public Member Functions

constexpr operator str () const noexcept
 Conversion operator to kumi::str.
 
template<typename T >
constexpr field_capture< ID, std::unwrap_ref_decay_t< T > > operator= (T v) const
 Builds a field_capture from the given value.
 

Static Public Attributes

static constexpr auto name = ID
 Name associated to the field_name.