71# ifndef AH_STDC_UTILS_H
72# define AH_STDC_UTILS_H
104template <
typename Container,
typename Iterator>
106 const Iterator&
itor)
109 <<
"Iterator does not belong to the specified container";
136template <
typename Iterator>
140 <<
"Iterators do not belong to the same container";
162template <
typename Container,
typename Iterator>
165 const Iterator&
itor1,
166 const Iterator&
itor2)
173 <<
"Destination and source iterators reference the same container";
197template <
typename Container,
typename Iterator>
199 const Iterator&
itor1,
200 const Iterator&
itor2)
Exception handling system with formatted messages for Aleph-w.
#define ah_domain_error_if(C)
Throws std::domain_error if condition holds.
Main namespace for Aleph-w library functions.
void verify_container_and_iterators(const Container &container, const Iterator &itor_container, const Iterator &itor1, const Iterator &itor2)
Verifies container-iterator relationships with distinctness check.
void verify_iterators(const Iterator &itor1, const Iterator &itor2)
Verifies that two iterators belong to the same container.
void verify_container_and_iterator(const Container &container, const Iterator &itor)
Verifies that an iterator belongs to a specific container.
DynList< T > maps(const C &c, Op op)
Classic map operation.