Simple-Utility v2.3.1
Loading...
Searching...
No Matches
std_optional.hpp
Go to the documentation of this file.
1// Copyright Dominic Koepke 2019 - 2023.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at
4// https://www.boost.org/LICENSE_1_0.txt)
5
6#ifndef SL_UTILITY_NULLABLES_STD_OPTIONAL_HPP
7#define SL_UTILITY_NULLABLES_STD_OPTIONAL_HPP
8
9#pragma once
10
12
13#include <optional>
14
15namespace sl::nullables
16{
22 template <class... TArgs>
23 struct traits<std::optional<TArgs...>>
24 {
25 using value_type = typename std::optional<TArgs...>::value_type;
26 static constexpr std::nullopt_t null{ std::nullopt };
27 };
28}
29
30#endif
Definition: adapter.hpp:19
typename std::optional< TArgs... >::value_type value_type
Definition: std_optional.hpp:25
The main trait, which may be specialized from.
Definition: base.hpp:97