repr 0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
librepr::Member< T, N > Struct Template Reference

#include <members.h>

Inheritance diagram for librepr::Member< T, N >:
[legend]

Public Types

using accessor = Accessor< T >
 
using type = typename accessor::type
 
using class_type = typename accessor::class_type
 

Public Member Functions

constexpr Member (T accessor)
 
constexpr Member (T accessor, auto name_)
 
template<typename Obj >
requires (std::same_as<std::decay_t<Obj>, class_type>)
constexpr decltype(auto) operator() (Obj &&obj) noexcept
 

Public Attributes

Accessor< T > value
 
const_string< Nname {}
 

Member Typedef Documentation

◆ accessor

template<typename T , std::size_t N>
using librepr::Member< T, N >::accessor = Accessor<T>

◆ class_type

template<typename T , std::size_t N>
using librepr::Member< T, N >::class_type = typename accessor::class_type

◆ type

template<typename T , std::size_t N>
using librepr::Member< T, N >::type = typename accessor::type

Constructor & Destructor Documentation

◆ Member() [1/2]

template<typename T , std::size_t N>
constexpr librepr::Member< T, N >::Member ( accessor)
inlineexplicitconstexpr

◆ Member() [2/2]

template<typename T , std::size_t N>
constexpr librepr::Member< T, N >::Member ( accessor,
auto  name_ 
)
inlineconstexpr

Member Function Documentation

◆ operator()()

template<typename T , std::size_t N>
template<typename Obj >
requires (std::same_as<std::decay_t<Obj>, class_type>)
constexpr decltype(auto) librepr::Member< T, N >::operator() ( Obj &&  obj)
inlineconstexprnoexcept

Member Data Documentation

◆ name

template<typename T , std::size_t N>
const_string<N> librepr::Member< T, N >::name {}

◆ value

template<typename T , std::size_t N>
Accessor<T> librepr::Member< T, N >::value

The documentation for this struct was generated from the following file: