9#ifndef SQUID_SRC_GENERIC_H
10#define SQUID_SRC_GENERIC_H
16template <
class _Arg,
class _Result>
22template <
class L,
class T>
35 visitor(*(
typename T::argument_type
const *)
node->data);
49 void *
operator new (
size_t byteCount) { return ::operator
new (byteCount);}
51 void operator delete (
void *address) { ::operator
delete (address);}
71template <
class InputIterator,
class Visitor>
72Visitor&
for_each(InputIterator from, InputIterator to, Visitor& visitor)
74 while (!(from == to)) {
75 typename InputIterator::value_type &value = *from;
84template <
class Po
inter>
T & for_each(L const &head, T &visitor)
squidaio_request_t * head
C const * operator->() const
C const & operator*() const
InstanceToSingletonAdapter(C const *instance)
PointerPrinter(std::ostream &astream, std::string aDelimiter)
void operator()(Pointer aNode)