OTest2
A C++ testing framework
Static Public Member Functions | List of all members
OTest2::ListContainerTrait< Container_ > Struct Template Reference

A simple trait allowing access to list container's iterators. More...

#include <containertrait.h>

Static Public Member Functions

static Container_::const_iterator begin (const Container_ &cont_)
 Get beginning iterator. More...
 
static Container_::const_iterator end (const Container_ &cont_)
 Get ending iterator. More...
 

Detailed Description

template<typename Container_>
struct OTest2::ListContainerTrait< Container_ >

A simple trait allowing access to list container's iterators.

This trait is used by the item-wise and lexicographical assertions to get the begin and end iterator. This default implementation works well with the STL containers.

One can write own specialization of the the trait to plug own container into the assertions. The iterators must follow:

Definition at line 45 of file containertrait.h.

Member Function Documentation

◆ begin()

template<typename Container_ >
static Container_::const_iterator OTest2::ListContainerTrait< Container_ >::begin ( const Container_ &  cont_)
inlinestatic

Get beginning iterator.

Definition at line 49 of file containertrait.h.

◆ end()

template<typename Container_ >
static Container_::const_iterator OTest2::ListContainerTrait< Container_ >::end ( const Container_ &  cont_)
inlinestatic

Get ending iterator.

Definition at line 57 of file containertrait.h.


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