Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-09-15 16:20:07


Peter Dimov wrote:

[...]

> 1. Define result_type:
>
> struct resize_vector_bool
> {
> typedef void result_type;

        template<class V, class N>

> void operator()(V& v, N n) const
> {
> v.resize(n);
> }
> };

;-)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net