gimo v0.1.0
Loading...
Searching...
No Matches
StdOptional.hpp
Go to the documentation of this file.
1// Copyright Dominic (DNKpp) Koepke 2025.
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 GIMO_EXT_STD_OPTIONAL_HPP
7#define GIMO_EXT_STD_OPTIONAL_HPP
8
9#pragma once
10
11#include <optional>
12
13namespace gimo
14{
15 template <typename T>
16 struct traits;
17}
18
19template <typename T>
20struct gimo::traits<std::optional<T>>
21{
22 static constexpr auto null{std::nullopt};
23
24 template <typename V>
25 using rebind_value = std::optional<V>;
26};
27
28#endif
Definition AndThen.hpp:21
std::optional< V > rebind_value
Definition StdOptional.hpp:25
static constexpr auto null
Definition StdOptional.hpp:22
The central customization point for the library.
Definition Common.hpp:102