OTest2
A C++ testing framework
|
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... | |
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.
|
inlinestatic |
Get beginning iterator.
Definition at line 49 of file containertrait.h.
|
inlinestatic |
Get ending iterator.
Definition at line 57 of file containertrait.h.