Boost logo

Boost :

From: rwgk_at_[hidden]
Date: 2001-09-08 06:19:50

--- In boost_at_y..., Ross Smith <ross.s_at_i...> wrote:
> You might like to have a look at the policy-based vector class I
> proposed a while ago:

That tgz file does not seem to be what the tgz extension normally
implies. I could only unpack this with WinZIP.

The fixed_size policy seems to be a glorified boost::array:
          std::size_t size() const {
            return N;
However, what I am interested in is a vector with two pieces
of member data:
    T data_[N];
    std::size_t size_; // default constructor: size_ = 0
    std::size_t size() const { return size_; }
    std::size_t capacity() const { return N; }
This vector can habe 0 to N elements and cannot grow beyond
N elements.
I guess what I want could be called a "fixed_capacity" policy.

I hate to say this, but VC compatibility is a requirement for
me. Unfortunately that collides with your requirement for
partial specialization.


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