|
Boost Users : |
Subject: Re: [Boost-users] Is there a self contained vector-like container?
From: Frank Birbacher (bloodymir.crap_at_[hidden])
Date: 2012-03-01 17:55:50
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Am 01.03.12 23:07, schrieb Nevin Liber:
> In the interface or the implementation?
Implementation.
> Your use case (char array) is fairly easy to whip up with just an
> array and a size.
You have a point here. I don't need the fully fledged container
semantics for my use case. Maybe I should just static_assert its
value_type to be POD and implement it with an array.
> Alignment, exception safety or move semantics is what makes this
> container non-trivial to write.
Right, and in such places the size of the size member is usually
irrelevant. Anyway it would not hurt to statically select the size
member type by the max size template parameter in order to cover a use
case like mine.
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: keyserver x-hkp://pool.sks-keyservers.net
iEYEARECAAYFAk9P/nYACgkQhAOUmAZhnmqBEACdHFV8liBNLt0GdQIKdGDuIx/f
Jp8AnjF9LnNv2TDnJN3rT8Pk3gTZH7j7
=CxXM
-----END PGP SIGNATURE-----
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