Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
CLI::detail::pair_adaptor< T, _ > Struct Template Reference

Adaptor for set-like structure: This just wraps a normal container in a few utilities that do almost nothing. More...

#include <CLI11.hpp>

Inheritance diagram for CLI::detail::pair_adaptor< T, _ >:
Collaboration diagram for CLI::detail::pair_adaptor< T, _ >:

Public Types

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

Static Public Member Functions

template<typename Q >
static auto first (Q &&pair_value) -> decltype(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::forward< Q >(pair_value))
 Get the second value (really just the underlying value)
 

Detailed Description

template<typename T, typename _ = void>
struct CLI::detail::pair_adaptor< T, _ >

Definition at line 929 of file CLI11.hpp.

Member Typedef Documentation

◆ first_type

template<typename T , typename _ = void>
using CLI::detail::pair_adaptor< T, _ >::first_type = typename std::remove_const<value_type>::type

Definition at line 931 of file CLI11.hpp.

◆ second_type

template<typename T , typename _ = void>
using CLI::detail::pair_adaptor< T, _ >::second_type = typename std::remove_const<value_type>::type

Definition at line 932 of file CLI11.hpp.

◆ value_type

template<typename T , typename _ = void>
using CLI::detail::pair_adaptor< T, _ >::value_type = typename T::value_type

Definition at line 930 of file CLI11.hpp.

Member Function Documentation

◆ first()

template<typename T , typename _ = void>
template<typename Q >
static auto CLI::detail::pair_adaptor< T, _ >::first ( Q && pair_value) -> decltype(std::forward<Q>(pair_value))
inlinestatic

Definition at line 935 of file CLI11.hpp.

935 {
936 return std::forward<Q>(pair_value);
937 }
Here is the caller graph for this function:

◆ second()

template<typename T , typename _ = void>
template<typename Q >
static auto CLI::detail::pair_adaptor< T, _ >::second ( Q && pair_value) -> decltype(std::forward<Q>(pair_value))
inlinestatic

Definition at line 939 of file CLI11.hpp.

939 {
940 return std::forward<Q>(pair_value);
941 }

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