openMSX
Functions
narrow.hh File Reference
#include "inline.hh"
#include <cassert>
#include <type_traits>
#include <utility>
Include dependency graph for narrow.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename To , typename From >
constexpr To narrow_cast (From &&from) noexcept
 
ALWAYS_INLINE constexpr void narrow_assert (bool ok)
 
template<typename To , typename From >
constexpr To narrow (From from) noexcept
 

Function Documentation

◆ narrow()

template<typename To , typename From >
constexpr To narrow ( From  from)
constexprnoexcept

Definition at line 37 of file narrow.hh.

References narrow_assert().

Referenced by openmsx::ImGuiCharacter::paint().

◆ narrow_assert()

ALWAYS_INLINE constexpr void narrow_assert ( bool  ok)
constexpr

Definition at line 26 of file narrow.hh.

Referenced by narrow().

◆ narrow_cast()

template<typename To , typename From >
constexpr To narrow_cast ( From &&  from)
constexprnoexcept

Definition at line 21 of file narrow.hh.