OGLplus  (0.59.0) a C++ wrapper for rendering APIs

optional_ref.hpp File Reference
#include "assert.hpp"
#include "nothing.hpp"
#include "tribool.hpp"
#include <memory>

Go to the source code of this file.

Classes

class  eagine::optional_reference_wrapper< T >
 Optional reference to an instance of type T. More...
 

Namespaces

 eagine
 Common code is placed in this namespace.
 

Functions

template<typename T >
static auto eagine::extract (optional_reference_wrapper< T > ref) noexcept -> T &
 Overload of extract for optional_reference_wrapper.
 
template<typename T >
static auto eagine::extract_or (optional_reference_wrapper< T > ref, T &fallback) noexcept -> T &
 Overload of extract_or for optional_reference_wrapper.
 
template<typename T , typename F >
static auto eagine::extract_or (optional_reference_wrapper< T > ref, F &&fallback) -> std::enable_if_t< std::is_convertible_v< F, T >, T >
 Overload of extract_or for optional_reference_wrapper.
 

Detailed Description

Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt


Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).