StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
StormByte::Type::Optional Concept Reference

Concept to check if a type is an optional. More...

#include <type_traits.hxx>

Concept definition

template<typename T>
concept StormByte::Type::Optional = is_optional<T>::value
Concept to check if a type is an optional.
Definition type_traits.hxx:109

Detailed Description

Concept to check if a type is an optional.

Template Parameters
TThe type to check.

A type satisfies Optional if it is std::optional<U> for some type U.

template<Type::Optional T>
void process(T opt) { ... }