stdFoam Namespace Reference

Namespace for std templates that are are part of future C++ standards or that are in a state of change. More...

Classes

class  span
 Rudimentary functionality similar to std::span for holding memory view. More...
 

Typedefs

template<class... >
using void_t = void
 Map a sequence of any types to void as per C++17 std::void_t. More...
 

Functions

template<class C >
constexpr auto begin (C &c) -> decltype(c.begin())
 Return iterator to the beginning of the container c. More...
 
template<class C >
constexpr auto begin (const C &c) -> decltype(c.begin())
 Return const_iterator to the beginning of the container c. More...
 
template<class C >
constexpr auto cbegin (const C &c) -> decltype(c.begin())
 Return const_iterator to the beginning of the container c. More...
 
template<class C >
constexpr auto end (C &c) -> decltype(c.end())
 Return iterator to the end of the container c. More...
 
template<class C >
constexpr auto end (const C &c) -> decltype(c.end())
 Return const_iterator to the end of the container c. More...
 
template<class C >
constexpr auto cend (const C &c) -> decltype(c.end())
 Return const_iterator to the end of the container c. More...
 
template<class C >
constexpr auto rbegin (C &c) -> decltype(c.rbegin())
 Return reverse_iterator to the reverse-begin of container c. More...
 
template<class C >
constexpr auto rbegin (const C &c) -> decltype(c.rbegin())
 Return const_reverse_iterator to the reverse-begin of container c. More...
 
template<class C >
constexpr auto crbegin (const C &c) -> decltype(c.rbegin())
 Return const_reverse_iterator to the reverse-begin of container c. More...
 
template<class C >
constexpr auto rend (C &c) -> decltype(c.rend())
 Return reverse_iterator to reverse-end of container c. More...
 
template<class C >
constexpr auto rend (const C &c) -> decltype(c.rend())
 Return const_reverse_iterator to reverse-end of container c. More...
 
template<class C >
constexpr auto crend (const C &c) -> decltype(c.rend())
 Return const_reverse_iterator to reverse-end of container c. More...
 
template<class T >
constexpr const Tmin (const T &a, const T &b)
 Return the lesser of the parameters. More...
 
template<class T >
constexpr const Tmax (const T &a, const T &b)
 Return the greater of the parameters. More...
 

Detailed Description

Typedef Documentation

◆ void_t

using void_t = void

Map a sequence of any types to void as per C++17 std::void_t.

Definition at line 48 of file pTraits.H.

Function Documentation

◆ begin() [1/2]

◆ begin() [2/2]

constexpr auto stdFoam::begin ( const C c) -> decltype(c.begin())

Return const_iterator to the beginning of the container c.

Definition as per std::begin C++17

Definition at line 179 of file stdFoam.H.

References Foam::constant::universal::c.

◆ cbegin()

◆ end() [1/2]

constexpr auto stdFoam::end ( C c) -> decltype(c.end())

Return iterator to the end of the container c.

Definition as per std::end C++17

Definition at line 201 of file stdFoam.H.

References Foam::constant::universal::c.

◆ end() [2/2]

constexpr auto stdFoam::end ( const C c) -> decltype(c.end())

Return const_iterator to the end of the container c.

Definition as per std::end C++17

Definition at line 212 of file stdFoam.H.

References Foam::constant::universal::c.

◆ cend()

◆ rbegin() [1/2]

constexpr auto stdFoam::rbegin ( C c) -> decltype(c.rbegin())

Return reverse_iterator to the reverse-begin of container c.

Definition as per std::rbegin C++17

Definition at line 237 of file stdFoam.H.

References Foam::constant::universal::c.

◆ rbegin() [2/2]

constexpr auto stdFoam::rbegin ( const C c) -> decltype(c.rbegin())

Return const_reverse_iterator to the reverse-begin of container c.

Definition as per std::rbegin C++17

Definition at line 248 of file stdFoam.H.

References Foam::constant::universal::c.

◆ crbegin()

constexpr auto stdFoam::crbegin ( const C c) -> decltype(c.rbegin())

Return const_reverse_iterator to the reverse-begin of container c.

Definition as per std::crbegin C++17

Definition at line 259 of file stdFoam.H.

References Foam::constant::universal::c.

◆ rend() [1/2]

constexpr auto stdFoam::rend ( C c) -> decltype(c.rend())

Return reverse_iterator to reverse-end of container c.

Definition as per std::rend C++17

Definition at line 270 of file stdFoam.H.

References Foam::constant::universal::c.

◆ rend() [2/2]

constexpr auto stdFoam::rend ( const C c) -> decltype(c.rend())

Return const_reverse_iterator to reverse-end of container c.

Definition as per std::rend C++17

Definition at line 281 of file stdFoam.H.

References Foam::constant::universal::c.

◆ crend()

constexpr auto stdFoam::crend ( const C c) -> decltype(c.rend())

Return const_reverse_iterator to reverse-end of container c.

Definition as per std::crend C++17

Definition at line 292 of file stdFoam.H.

References Foam::constant::universal::c.

Referenced by DLListBase::crbegin().

Here is the caller graph for this function:

◆ min()

constexpr const T& stdFoam::min ( const T a,
const T b 
)
inline

Return the lesser of the parameters.

Definition as per std::min C++14

Definition at line 303 of file stdFoam.H.

References Foam::constant::physicoChemical::b.

Referenced by span< Type >::subspan().

Here is the caller graph for this function:

◆ max()

constexpr const T& stdFoam::max ( const T a,
const T b 
)
inline

Return the greater of the parameters.

Definition as per std::max C++14

Definition at line 314 of file stdFoam.H.

References Foam::constant::physicoChemical::b.