Models
The STL does not include any types that are models of Adaptable Generator. An example of a user-defined Adaptable Generator is as follows.
struct counter {
typedef int result_type;
counter() : n(0) {}
result_type operator()() { return n++; }
result_type n;
};
Loading...