|
Boost : |
Subject: Re: [boost] static_vector using aligned_storage
From: Nevin Liber (nevin_at_[hidden])
Date: 2012-12-17 22:55:28
On 17 December 2012 19:39, Adam Wulkiewicz <adam.wulkiewicz_at_[hidden]>wrote:
>
> Btw, how is data() defined?
According to the latest draft of the standard, n3485 23.3.6.1, it returns a
T* (or a const T* for the const member version); this is the same as
value_type*.
> This of course won't work for a hybrid_vector.
Why not?
> But then what is the purpose of this method?
>
To get to the buffer for passing to C routines, usually.
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk