RhythmGame 1.4.3
Loading...
Searching...
No Matches
Namespaces | Functions
get.h File Reference
#include <boost/pfr/tuple_size.hpp>
#include <boost/pfr/core.hpp>
Include dependency graph for get.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  support
 Contains various helper classes and functions.
 

Functions

template<std::size_t N, typename T >
requires requires { std::get<N>(std::declval<T>()); }
constexpr auto support::get (T &&t) -> auto &
 Returns the nth element of a type that supports std::get.
 
template<std::size_t N, typename T >
requires std::is_aggregate_v<std::remove_cvref_t<T>>
constexpr auto support::get (T &&aggregate) -> auto &
 Returns the nth member of an aggregate.