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

is_within_limits.hpp File Reference
#include "assert.hpp"
#include "diagnostic.hpp"
#include "int_constant.hpp"
#include "valid_if/decl.hpp"
#include <cstdint>
#include <limits>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

 eagine
 Common code is placed in this namespace.
 

Functions

template<typename Dst , typename Src >
static constexpr auto eagine::is_within_limits (Src value) noexcept
 Indicates if value fits into the specified Dst type. More...
 
template<typename Dst , typename Src >
static constexpr auto eagine::limit_cast (Src value) noexcept -> std::enable_if_t< std::is_convertible_v< Src, Dst >, Dst >
 Casts value to Dst type if the value fits in that type. More...
 
template<typename Dst , typename Src >
static constexpr auto eagine::convert_if_fits (Src value) noexcept -> std::enable_if_t< std::is_convertible_v< Src, Dst >, optionally_valid< Dst >>
 Optionally converts value to Dst type if the value fits in that type. More...
 

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).