|
Boost : |
From: Martin (adrianm_at_[hidden])
Date: 2005-05-13 04:13:06
Wouldn't the flex_string be even more flexible if it accepted ranges in
constructor, assignment etc.
(same for fixed_string, const_string of course)
Then you could easily switch between different string types without the .c_str
()
template <class RangeT>
flex_string(const RangeT& input, const A& a = A())
: Storage(a)
{
assign(begin(input), end(input));
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk