add doc: basic_string assign

This commit is contained in:
Bolero-MURAKAMI 2013-09-08 18:59:50 +09:00
parent c6a9bf338a
commit 5af5e8c300
24 changed files with 1489 additions and 44 deletions

View file

@ -16,7 +16,9 @@ Interface
Effects
========================================
| ``std::copy(rhs.begin(), rhs.end(), begin())``, ``std::move(rhs.begin(), rhs.end(), begin())``.
| ``std::copy(rhs.begin(), rhs.end(), begin())``.
| or
| ``std::move(rhs.begin(), rhs.end(), begin())``.
Returns
========================================
@ -28,10 +30,13 @@ Examples
.. sourcecode:: c++
#include <sprout/array.hpp>
#include <sprout/assert.hpp>
using namespace sprout;
auto x = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
x = array<int, 10>{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}};
SPROUT_STATIC_CONSTEXPR auto y = array<int, 10>{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}};
x = y;
SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
Header
========================================