STX  1.0.0
Functions
stx::internal::option Namespace Reference

Functions

template<typename Tp >
Tp && unsafe_value_move (Option< Tp > &)
 
STX_FORCE_INLINE void expect_value_failed (std::string_view const &msg, SourceLocation const &location=SourceLocation::current()) noexcept
 panic helper for Option<T>::expect() when no value is present More...
 
STX_FORCE_INLINE void expect_none_failed (std::string_view const &msg, SourceLocation const &location=SourceLocation::current()) noexcept
 panic helper for Option<T>::expect_none() when a value is present More...
 
STX_FORCE_INLINE void no_value (SourceLocation const &location=SourceLocation::current()) noexcept
 panic helper for Option<T>::unwrap() when no value is present More...
 
STX_FORCE_INLINE void no_lref (SourceLocation const &location=SourceLocation::current()) noexcept
 panic helper for Option<T>::value() when no value is present More...
 
STX_FORCE_INLINE void no_none (SourceLocation const &location=SourceLocation::current()) noexcept
 panic helper for Option<T>::unwrap_none() when a value is present More...
 

Function Documentation

◆ expect_none_failed()

STX_FORCE_INLINE void stx::internal::option::expect_none_failed ( std::string_view const &  msg,
SourceLocation const &  location = SourceLocation::current() 
)
noexcept

panic helper for Option<T>::expect_none() when a value is present

◆ expect_value_failed()

STX_FORCE_INLINE void stx::internal::option::expect_value_failed ( std::string_view const &  msg,
SourceLocation const &  location = SourceLocation::current() 
)
noexcept

panic helper for Option<T>::expect() when no value is present

◆ no_lref()

STX_FORCE_INLINE void stx::internal::option::no_lref ( SourceLocation const &  location = SourceLocation::current())
noexcept

panic helper for Option<T>::value() when no value is present

◆ no_none()

STX_FORCE_INLINE void stx::internal::option::no_none ( SourceLocation const &  location = SourceLocation::current())
noexcept

panic helper for Option<T>::unwrap_none() when a value is present

◆ no_value()

STX_FORCE_INLINE void stx::internal::option::no_value ( SourceLocation const &  location = SourceLocation::current())
noexcept

panic helper for Option<T>::unwrap() when no value is present

◆ unsafe_value_move()

template<typename Tp >
Tp&& stx::internal::option::unsafe_value_move ( Option< Tp > &  )
inline