Loading...
Searching...
No Matches
is_mutable_container< T, conditional_t< false, void_t< typename T::value_type, decltype(std::declval< T >().end()), decltype(std::declval< T >().clear()), decltype(std::declval< T >().insert(std::declval< decltype(std::declval< T >().end())>(), std::declval< const typename T::value_type & >()))>, void > > Struct Template Reference

type trait to test if a type is a mutable container meaning it has a value_type, it has an iterator, a clear, and end methods and an insert function. More...

#include <CLI11.h>

Inherits conditional_t< std::is_constructible< T, std::string >::value, std::false_type, std::true_type >.

Detailed Description

template<typename T>
struct pxr_CLI::CLI::detail::is_mutable_container< T, conditional_t< false, void_t< typename T::value_type, decltype(std::declval< T >().end()), decltype(std::declval< T >().clear()), decltype(std::declval< T >().insert(std::declval< decltype(std::declval< T >().end())>(), std::declval< const typename T::value_type & >()))>, void > >

type trait to test if a type is a mutable container meaning it has a value_type, it has an iterator, a clear, and end methods and an insert function.

And for our purposes we exclude std::string and types that can be constructed from a std::string

Definition at line 1177 of file CLI11.h.


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