$darkmode
optional.hpp File Reference
#include <optional>
#include <string>
#include <type_traits>
#include <utility>
#include <fable/schema/interface.hpp>
#include <fable/utility/optional.hpp>
Include dependency graph for optional.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fable::schema::is_optional< T >
 
struct  fable::schema::is_optional< std::optional< T > >
 
class  fable::schema::Optional< T, P >
 

Functions

template<typename T , typename P , std::enable_if_t< is_optional_v< T >, bool > = true>
Optional< T, P > fable::schema::make_schema (T *ptr, P prototype, std::string desc)
 
template<typename T , std::enable_if_t< is_optional_v< T >, bool > = true>
Optional< T, decltype(make_prototype< typename T::value_type >))> fable::schema::make_schema (T *ptr, std::string desc)
 

Variables

template<typename T >
constexpr bool fable::schema::is_optional_v = is_optional<T>::value
 

Detailed Description