Scarab  v3.2.0
Project 8 C++ Utility Library
Public Types | Static Public Member Functions | List of all members
pair_adaptor< T, conditional_t< false, void_t< typename T::value_type::first_type, typename T::value_type::second_type >, void > > Struct Template Reference

#include <CLI11.hpp>

Inheritance diagram for pair_adaptor< T, conditional_t< false, void_t< typename T::value_type::first_type, typename T::value_type::second_type >, void > >:
Inheritance graph

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) More...
 
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) More...
 

Detailed Description

template<typename T>
struct 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 995 of file CLI11.hpp.

Member Typedef Documentation

◆ first_type

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

Definition at line 1000 of file CLI11.hpp.

◆ second_type

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

Definition at line 1001 of file CLI11.hpp.

◆ value_type

using value_type = typename T::value_type

Definition at line 999 of file CLI11.hpp.

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 1004 of file CLI11.hpp.

◆ 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 1008 of file CLI11.hpp.


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