83 template <
typename T =
int>
124 (
"", [] (
const std::string & s,
const T & item)
139 template <
typename T>
inline
142 return s <<
dom.to_str();
184 for (
long i = start; i <= end; i +=
step)
200 for (
size_t i = 0; i < n; ++i)
Exception handling system with formatted messages for Aleph-w.
#define ah_domain_error_if(C)
Throws std::domain_error if condition holds.
Generic domain class based on hash set.
const DynList< T > & keys() const
Get sorted list of all elements in the domain.
DynList< T > domain
Cached sorted keys.
DynList< T > to_list() const
Convert domain to sorted list.
bool keys_build
Lazy cache flag.
std::string to_str() const
Convert domain to string representation.
Dynamic singly linked list with functional programming support.
Main namespace for Aleph-w library functions.
std::decay_t< typename HeadC::Item_Type > T
DynArray< T > sort(const DynArray< T > &a, Cmp &&cmp=Cmp())
Returns a sorted copy of a DynArray.
std::string to_str(const double d)
Convert double to a std::string with maximum round-trip precision.
std::ostream & operator<<(std::ostream &osObject, const Field< T > &rightOp)
DynList< T > maps(const C &c, Op op)
Classic map operation.
HashSetTable< Key, Cmp > Base
Integer range domain [start, end] with optional step.
IntRange(const int start, const int end, const int step=1)
Construct range [start, end] with step.
IntRange()=delete
Deleted default constructor (range required)
IntRange(const size_t n)
Construct range [0, n-1].
Unified hash table interface.