BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsltf::TestValuesArraySentinel< VALUE > Class Template Reference

#include <bsltf_testvaluesarray.h>

Public Member Functions

 TestValuesArraySentinel ()
 
 TestValuesArraySentinel (const VALUE *end)
 
const VALUE * address () const
 

Friends

template<class OTHER_VALUE >
bool operator== (const TestValuesArrayIterator< OTHER_VALUE > &, const TestValuesArraySentinel< OTHER_VALUE > &)
 
template<class OTHER_VALUE >
bool operator== (const TestValuesArraySentinel< OTHER_VALUE > &, const TestValuesArrayIterator< OTHER_VALUE > &)
 
template<class OTHER_VALUE >
bool operator!= (const TestValuesArrayIterator< OTHER_VALUE > &, const TestValuesArraySentinel< OTHER_VALUE > &)
 
template<class OTHER_VALUE >
bool operator!= (const TestValuesArraySentinel< OTHER_VALUE > &, const TestValuesArrayIterator< OTHER_VALUE > &)
 

Constructor & Destructor Documentation

◆ TestValuesArraySentinel() [1/2]

template<class VALUE >
bsltf::TestValuesArraySentinel< VALUE >::TestValuesArraySentinel ( )

Create a sentinel object that "refers" to nullptr.

Note
Note that a default constructor is required by the bsl::sentinel_for concept.

◆ TestValuesArraySentinel() [2/2]

template<class VALUE >
bsltf::TestValuesArraySentinel< VALUE >::TestValuesArraySentinel ( const VALUE *  end)

Create a sentinel object that refers the specified end position (address).

Note
Note that no facility is provided to change the position of a sentinel object.

Member Function Documentation

◆ address()

template<class VALUE >
const VALUE * bsltf::TestValuesArraySentinel< VALUE >::address ( ) const

Return the position (address) referenced by this sentinel.

Friends And Related Symbol Documentation

◆ operator!= [1/2]

template<class VALUE >
template<class OTHER_VALUE >
bool operator!= ( const TestValuesArrayIterator< OTHER_VALUE > &  ,
const TestValuesArraySentinel< OTHER_VALUE > &   
)
friend

◆ operator!= [2/2]

template<class VALUE >
template<class OTHER_VALUE >
bool operator!= ( const TestValuesArraySentinel< OTHER_VALUE > &  ,
const TestValuesArrayIterator< OTHER_VALUE > &   
)
friend

◆ operator== [1/2]

template<class VALUE >
template<class OTHER_VALUE >
bool operator== ( const TestValuesArrayIterator< OTHER_VALUE > &  ,
const TestValuesArraySentinel< OTHER_VALUE > &   
)
friend

◆ operator== [2/2]

template<class VALUE >
template<class OTHER_VALUE >
bool operator== ( const TestValuesArraySentinel< OTHER_VALUE > &  ,
const TestValuesArrayIterator< OTHER_VALUE > &   
)
friend

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