Boost logo

Boost Users :

Subject: Re: [Boost-users] How to pass parameters to manage_shared_memory.construct() in Boost.Interprocess
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-13 11:47:08


AMDG

Cuneyt wrote:
> Works like a charm, thanks a lot! I checked std::vector doc and saw that it's
> constructor is
> explicit vector ( size_type n, const T& value= T(), const Allocator& =
> Allocator() );
> so you're right.
> Stupid question: if this is the constructor, how does
> std::vector<int> v = std::vector<int>(100)
> work?
>

The value and allocator parameters have defaults.

In Christ,
Steven Watanabe


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