powerd++  0.4.4
nih::enum_has_members< OptionT, class > Struct Template Reference

Tests whether the given enum provides all the required definitions. More...

#include <Options.hpp>

Inheritance diagram for nih::enum_has_members< OptionT, class >:
[legend]
Collaboration diagram for nih::enum_has_members< OptionT, class >:
[legend]

Detailed Description

template<class OptionT, class = void>
struct nih::enum_has_members< OptionT, class >

Tests whether the given enum provides all the required definitions.

The Options<> template expects the provided enum to provide the following members:

Member Description
OPT_UNKNOWN An undefined option (long or short) was encountered
OPT_NOOPT The encountered command line argument is not an option
OPT_DASH A single dash "-" was encountered
OPT_LDASH Double dashes "--" were encountered
OPT_DONE All command line arguments have been processed
Template Parameters
OptionTAn enum or enum class representing the available options

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