Static Public Member Functions | Static Public Attributes | List of all members
util::details::ValueToString< Value, std::enable_if_t< std::is_enum_v< Value > > > Struct Template Reference

#include <MultipleChoiceSelection.h>

Static Public Member Functions

template<typename T >
static std::optional< std::stringconvert (T const &value)
 

Static Public Attributes

static constexpr bool can_convert = true
 

Detailed Description

template<typename Value>
struct util::details::ValueToString< Value, std::enable_if_t< std::is_enum_v< Value > > >

Definition at line 591 of file MultipleChoiceSelection.h.

Member Function Documentation

template<typename Value >
template<typename T >
static std::optional<std::string> util::details::ValueToString< Value, std::enable_if_t< std::is_enum_v< Value > > >::convert ( T const &  value)
inlinestatic

Definition at line 595 of file MultipleChoiceSelection.h.

596  {
597  return
598  { std::to_string(static_cast<std::underlying_type_t<T>>(value)) };
599  }
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34

Member Data Documentation

template<typename Value >
constexpr bool util::details::ValueToString< Value, std::enable_if_t< std::is_enum_v< Value > > >::can_convert = true
static

Definition at line 592 of file MultipleChoiceSelection.h.


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