cli20 0.1.2
A C++20 typed-schema command-line parser
Loading...
Searching...
No Matches
cli::NameList< Max > Struct Template Reference

#include <relation.hh>

Public Member Functions

constexpr NameList ()=default
constexpr NameList (std::initializer_list< std::string_view > names)
constexpr auto begin () const
constexpr auto end () const
constexpr auto empty () const -> bool

Public Attributes

std::array< std::string_view, Max > values {}
std::size_t size {}

Detailed Description

template<std::size_t Max = 8>
struct cli::NameList< Max >

Definition at line 12 of file relation.hh.

Constructor & Destructor Documentation

◆ NameList() [1/2]

template<std::size_t Max = 8>
cli::NameList< Max >::NameList ( )
constexprdefault

◆ NameList() [2/2]

template<std::size_t Max = 8>
cli::NameList< Max >::NameList ( std::initializer_list< std::string_view > names)
inlineconstexpr

Definition at line 17 of file relation.hh.

Member Function Documentation

◆ begin()

template<std::size_t Max = 8>
auto cli::NameList< Max >::begin ( ) const
inlinenodiscardconstexpr

Definition at line 28 of file relation.hh.

◆ empty()

template<std::size_t Max = 8>
auto cli::NameList< Max >::empty ( ) const -> bool
inlinenodiscardconstexpr

Definition at line 30 of file relation.hh.

◆ end()

template<std::size_t Max = 8>
auto cli::NameList< Max >::end ( ) const
inlinenodiscardconstexpr

Definition at line 29 of file relation.hh.

Member Data Documentation

◆ size

template<std::size_t Max = 8>
std::size_t cli::NameList< Max >::size {}

Definition at line 14 of file relation.hh.

◆ values

template<std::size_t Max = 8>
std::array<std::string_view, Max> cli::NameList< Max >::values {}

Definition at line 13 of file relation.hh.


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