12 #ifndef ECL_CONTAINERS_INITIALISER_HPP_ 13 #define ECL_CONTAINERS_INITIALISER_HPP_ 21 #include <ecl/config/macros.hpp> 22 #include <ecl/exceptions/standard_exception.hpp> 29 namespace containers {
48 template<
class Type,
class Iterator, std::
size_t N = ecl::DynamicStorage>
58 BoundedListInitialiser(
const Type &value, Iterator iter);
60 virtual ~BoundedListInitialiser() {}
76 std::size_t current_size;
83 template <
typename Type,
typename Iterator, std::
size_t N>
91 template <
typename Type,
typename Iterator,std::
size_t N>
92 BoundedListInitialiser<Type,Iterator,N>& BoundedListInitialiser<Type,Iterator,N>::operator,(
const Type &value)
ecl_assert_throw_decl(StandardException)
116 template<
class Type,
class Iterator>
131 virtual ~BoundedListInitialiser() {}
142 BoundedListInitialiser<Type, Iterator, DynamicStorage>& operator,(
const Type &value)
ecl_assert_throw_decl(StandardException);
146 std::size_t current_size;
147 const std::size_t upper_bound;
154 template <
typename Type,
typename Iterator>
155 BoundedListInitialiser<Type,Iterator,DynamicStorage>::BoundedListInitialiser(
const Type &value, Iterator iter, std::size_t bound)
ecl_assert_throw_decl(StandardException) :
164 template <
typename Type,
typename Iterator>
165 BoundedListInitialiser<Type,Iterator,DynamicStorage>& BoundedListInitialiser<Type,Iterator,DynamicStorage>::operator,(
const Type &value)
ecl_assert_throw_decl(StandardException)
#define LOC
Stringify the line of code you are at.
#define ecl_assert_throw(expression, exception)
Debug mode throw with a logical condition check.
BoundedListInitialiser(const Type &value, Iterator iter)
#define ecl_assert_throw_decl(exception)
Assure throw exception declaration.
const GenericPointer< typename T::ValueType > T2 value