Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-03-07 19:02:22

"Thorsten Ottosen" <nesotto_at_[hidden]> writes:

> my code does not include <vector>, <list> or <map>, but it does need
> <iterator>.
> Some of the functionality of the container_traits are shown here:
> template< typename C >
> bool is_container()
> {
> return boost::container_traits<C>::is_container();
> }


Yes, you can take an approach like this one, but it will cause false
positives in some circumstances. If that's acceptable for your
application, then it's a good answer.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at