Loading...
Searching...
No Matches
pair_adaptor< T, conditional_t< false, void_t< typename T::value_type::first_type, typename T::value_type::second_type >, void > > Struct Template Reference

Adaptor for map-like structure (true version, must have key_type and mapped_type). More...

#include <CLI11.h>

Inherits true_type.

Public Types

using value_type = typename T::value_type
 
using first_type = typename std::remove_const< typename value_type::first_type >::type
 
using second_type = typename std::remove_const< typename value_type::second_type >::type
 

Static Public Member Functions

template<typename Q >
static auto first (Q &&pair_value) -> decltype(std::get< 0 >(std::forward< Q >(pair_value)))
 Get the first value (really just the underlying value)
 
template<typename Q >
static auto second (Q &&pair_value) -> decltype(std::get< 1 >(std::forward< Q >(pair_value)))
 Get the second value (really just the underlying value)
 

Detailed Description

template<typename T>
struct pxr_CLI::CLI::detail::pair_adaptor< T, conditional_t< false, void_t< typename T::value_type::first_type, typename T::value_type::second_type >, void > >

Adaptor for map-like structure (true version, must have key_type and mapped_type).

This wraps a mapped container in a few utilities access it in a general way.

Definition at line 1067 of file CLI11.h.

Member Typedef Documentation

◆ first_type

using first_type = typename std::remove_const<typename value_type::first_type>::type

Definition at line 1072 of file CLI11.h.

◆ second_type

using second_type = typename std::remove_const<typename value_type::second_type>::type

Definition at line 1073 of file CLI11.h.

◆ value_type

using value_type = typename T::value_type

Definition at line 1071 of file CLI11.h.

Member Function Documentation

◆ first()

static auto first ( Q &&  pair_value) -> decltype(std::get<0>(std::forward<Q>(pair_value)))
inlinestatic

Get the first value (really just the underlying value)

Definition at line 1076 of file CLI11.h.

◆ second()

static auto second ( Q &&  pair_value) -> decltype(std::get<1>(std::forward<Q>(pair_value)))
inlinestatic

Get the second value (really just the underlying value)

Definition at line 1080 of file CLI11.h.


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