Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lexy::scan_result< T > Class Template Reference

#include <scan.hpp>

Public Types

using value_type = T
 

Public Member Functions

constexpr bool has_value () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr scan_result ()=default
 
constexpr scan_result (scan_failed_t)
 
template<typename U = T, typename = std::enable_if_t<std::is_constructible_v<T, U>>>
constexpr scan_result (U &&value)
 
constexpr decltype(auto) value () &&noexcept
 
constexpr decltype(auto) value () const &noexcept
 
template<typename U = T>
constexpr decltype(auto) value_or (U &&fallback) &&noexcept
 
template<typename U = T>
constexpr decltype(auto) value_or (U &&fallback) const &noexcept
 

Private Member Functions

constexpr scan_result (_detail::lazy_init< T > &&value)
 

Private Attributes

_detail::lazy_init< T > _value
 

Friends

template<typename Derived , typename Reader >
class _detail::scanner
 

Detailed Description

template<typename T>
class lexy::scan_result< T >

Definition at line 44 of file dsl/scan.hpp.

Member Typedef Documentation

◆ value_type

template<typename T >
using lexy::scan_result< T >::value_type = T

Definition at line 47 of file dsl/scan.hpp.

Constructor & Destructor Documentation

◆ scan_result() [1/4]

template<typename T >
constexpr lexy::scan_result< T >::scan_result ( )
constexprdefault

◆ scan_result() [2/4]

template<typename T >
constexpr lexy::scan_result< T >::scan_result ( scan_failed_t  )
inlineconstexpr

Definition at line 50 of file dsl/scan.hpp.

◆ scan_result() [3/4]

template<typename T >
template<typename U = T, typename = std::enable_if_t<std::is_constructible_v<T, U>>>
constexpr lexy::scan_result< T >::scan_result ( U &&  value)
inlineconstexpr

Definition at line 53 of file dsl/scan.hpp.

◆ scan_result() [4/4]

template<typename T >
constexpr lexy::scan_result< T >::scan_result ( _detail::lazy_init< T > &&  value)
inlineexplicitconstexprprivate

Definition at line 88 of file dsl/scan.hpp.

Member Function Documentation

◆ has_value()

template<typename T >
constexpr bool lexy::scan_result< T >::has_value ( ) const
inlineconstexprnoexcept

Definition at line 62 of file dsl/scan.hpp.

◆ operator bool()

template<typename T >
constexpr lexy::scan_result< T >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 58 of file dsl/scan.hpp.

◆ value() [1/2]

template<typename T >
constexpr decltype(auto) lexy::scan_result< T >::value ( ) &&
inlineconstexprnoexcept

Definition at line 71 of file dsl/scan.hpp.

◆ value() [2/2]

template<typename T >
constexpr decltype(auto) lexy::scan_result< T >::value ( ) const &
inlineconstexprnoexcept

Definition at line 67 of file dsl/scan.hpp.

◆ value_or() [1/2]

template<typename T >
template<typename U = T>
constexpr decltype(auto) lexy::scan_result< T >::value_or ( U &&  fallback) &&
inlineconstexprnoexcept

Definition at line 82 of file dsl/scan.hpp.

◆ value_or() [2/2]

template<typename T >
template<typename U = T>
constexpr decltype(auto) lexy::scan_result< T >::value_or ( U &&  fallback) const &
inlineconstexprnoexcept

Definition at line 77 of file dsl/scan.hpp.

Friends And Related Function Documentation

◆ _detail::scanner

template<typename T >
template<typename Derived , typename Reader >
friend class _detail::scanner
friend

Definition at line 93 of file dsl/scan.hpp.

Member Data Documentation

◆ _value

template<typename T >
_detail::lazy_init<T> lexy::scan_result< T >::_value
private

Definition at line 90 of file dsl/scan.hpp.


The documentation for this class was generated from the following file:


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:19