MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
Typedefs
check_finite_iterable.hpp File Reference

Defines the check_finite_iterable utility to ease unit testing of Iterables. More...

#include <boost/mpl11/fwd/comparable.hpp>
#include <boost/mpl11/fwd/iterable.hpp>
#include <boost/mpl11/integer.hpp>
#include "minimal_iterable.hpp"
#include "static_assert.hpp"

Go to the source code of this file.

Typedefs

template<typename iter , typename... xs>
using check_finite_iterable = check_finite_iter_detail::impl< minimal_iterable< xs...>, iter >
 Generic unit test for finite iterables. More...
 

Detailed Description

Defines the check_finite_iterable utility to ease unit testing of Iterables.

Typedef Documentation

template<typename iter , typename... xs>
using check_finite_iterable = check_finite_iter_detail::impl<minimal_iterable<xs...>, iter>

Generic unit test for finite iterables.

To use check_finite_iterable, simply instantiate it with the first argument being the tested iterable and xs... being the expected contents of the iterable.