ECSTASY
All in the name
Loading...
Searching...
No Matches
util::meta::add_optional< T > Struct Template Reference

Add optional to a type if required. More...

#include <add_optional.hpp>

Public Types

using type = std::optional< T >
 

Detailed Description

template<typename T>
struct util::meta::add_optional< T >

Add optional to a type if required.

  • 'T &' -> std::optional<std::reference_wrapper<T>>
  • 'std::optional<T>' -> no change, returns std::optional<T>
  • Otherwise 'T' -> std::optional<T>
Template Parameters
TType to make optional.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2022-10-27)

Definition at line 31 of file add_optional.hpp.

Member Typedef Documentation

◆ type

template<typename T >
using util::meta::add_optional< T >::type = std::optional<T>

Definition at line 32 of file add_optional.hpp.


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