diff --git a/docs/_sources/libs/array/array/assign.txt b/docs/_sources/libs/array/array/assign.txt
index 76f9e6f2..8a6eafec 100644
--- a/docs/_sources/libs/array/array/assign.txt
+++ b/docs/_sources/libs/array/array/assign.txt
@@ -30,8 +30,10 @@ Examples
using namespace sprout;
auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
- x.assign(0);
- SPROUT_ASSERT_MSG(x[0] == 0, "filled with 0.");
+ int main() {
+ x.assign(0);
+ SPROUT_ASSERT_MSG(x[0] == 0, "filled with 0.");
+ }
.. sourcecode:: c++
diff --git a/docs/_sources/libs/array/array/fill.txt b/docs/_sources/libs/array/array/fill.txt
index 15e16456..a6138e7a 100644
--- a/docs/_sources/libs/array/array/fill.txt
+++ b/docs/_sources/libs/array/array/fill.txt
@@ -30,8 +30,10 @@ Examples
using namespace sprout;
auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
- x.fill(0);
- SPROUT_ASSERT_MSG(x[0] == 0, "filled with 0.");
+ int main() {
+ x.fill(0);
+ SPROUT_ASSERT_MSG(x[0] == 0, "filled with 0.");
+ }
.. sourcecode:: c++
diff --git a/docs/_sources/libs/array/array/operator-assign.txt b/docs/_sources/libs/array/array/operator-assign.txt
index 5df7432f..9fddc980 100644
--- a/docs/_sources/libs/array/array/operator-assign.txt
+++ b/docs/_sources/libs/array/array/operator-assign.txt
@@ -35,8 +35,10 @@ Examples
auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
SPROUT_STATIC_CONSTEXPR auto y = array{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}};
- x = y;
- SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ int main() {
+ x = y;
+ SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ }
Header
========================================
diff --git a/docs/_sources/libs/array/array/std-tuple_size.txt b/docs/_sources/libs/array/array/std-tuple_size.txt
index e40907bd..d1ab43c0 100644
--- a/docs/_sources/libs/array/array/std-tuple_size.txt
+++ b/docs/_sources/libs/array/array/std-tuple_size.txt
@@ -33,8 +33,8 @@ Examples
using namespace sprout;
using type = array;
- SPROUT_STATIC_CONSTEXPR auto size = std::tuple_size::value;
- static_assert(size == 10, "tuple size of array is 10.");
+ SPROUT_STATIC_CONSTEXPR auto n = std::tuple_size::value;
+ static_assert(n == 10, "tuple size of array is 10.");
Header
========================================
diff --git a/docs/_sources/libs/array/array/swap-global.txt b/docs/_sources/libs/array/array/swap-global.txt
index 774a6c8c..f4d6ed71 100644
--- a/docs/_sources/libs/array/array/swap-global.txt
+++ b/docs/_sources/libs/array/array/swap-global.txt
@@ -32,8 +32,10 @@ Examples
auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
auto y = array{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}};
- swap(x, y);
- SPROUT_ASSERT_MSG(x[0] = 10 && y[0] == 1, "each element are swapped.");
+ int main() {
+ swap(x, y);
+ SPROUT_ASSERT_MSG(x[0] == 10 && y[0] == 1, "each element are swapped.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/array/array/swap.txt b/docs/_sources/libs/array/array/swap.txt
index fb7518c8..693426a2 100644
--- a/docs/_sources/libs/array/array/swap.txt
+++ b/docs/_sources/libs/array/array/swap.txt
@@ -29,8 +29,10 @@ Examples
auto x = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
auto y = array{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}};
- x.swap(y);
- SPROUT_ASSERT_MSG(x[0] == 10 && y[0] == 1, "each element are swapped.");
+ int main() {
+ x.swap(y);
+ SPROUT_ASSERT_MSG(x[0] == 10 && y[0] == 1, "each element are swapped.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/basic_string/assign-iterator.txt b/docs/_sources/libs/string/basic_string/assign-iterator.txt
index 5406b47d..87f8c619 100644
--- a/docs/_sources/libs/string/basic_string/assign-iterator.txt
+++ b/docs/_sources/libs/string/basic_string/assign-iterator.txt
@@ -40,8 +40,10 @@ Examples
auto x = string<8>("homuhomu");
SPROUT_STATIC_CONSTEXPR auto y = string<8>("madocchi");
- x.assign(y.begin(), 8);
- SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ int main() {
+ x.assign(y.begin(), 8);
+ SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ }
----
diff --git a/docs/_sources/libs/string/basic_string/assign.txt b/docs/_sources/libs/string/basic_string/assign.txt
index 7cc59a8a..198f7d2b 100644
--- a/docs/_sources/libs/string/basic_string/assign.txt
+++ b/docs/_sources/libs/string/basic_string/assign.txt
@@ -30,8 +30,10 @@ Examples
auto x = string<8>("homuhomu");
SPROUT_STATIC_CONSTEXPR auto y = string<8>("madocchi");
- x.assign(y);
- SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ int main() {
+ x.assign(y);
+ SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ }
----
diff --git a/docs/_sources/libs/string/basic_string/clear.txt b/docs/_sources/libs/string/basic_string/clear.txt
index c8dea92a..46f131f9 100644
--- a/docs/_sources/libs/string/basic_string/clear.txt
+++ b/docs/_sources/libs/string/basic_string/clear.txt
@@ -23,8 +23,10 @@ Examples
using namespace sprout;
auto x = string<8>("homuhomu");
- x.clear();
- SPROUT_ASSERT_MSG(x.size() == 0 && x == "", "string is cleared.");
+ int main() {
+ x.clear();
+ SPROUT_ASSERT_MSG(x.size() == 0 && x == "", "string is cleared.");
+ }
Header
========================================
diff --git a/docs/_sources/libs/string/basic_string/compare-iterator.txt b/docs/_sources/libs/string/basic_string/compare-iterator.txt
new file mode 100644
index 00000000..b6d0267f
--- /dev/null
+++ b/docs/_sources/libs/string/basic_string/compare-iterator.txt
@@ -0,0 +1,66 @@
+.. _sprout-string-basic_string-compare-iterator:
+###############################################################################
+compare
+###############################################################################
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ template
+ SPROUT_CONSTEXPR int compare(StringConstIterator s) const;
+
+Requires
+========================================
+
+| ``std::is_same::value || std::is_same::value``.
+
+Returns
+========================================
+
+| ``compare(basic_string(s))``.
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ template
+ SPROUT_CONSTEXPR int compare(size_type pos1, size_type n1, StringConstIterator s) const;
+
+Requires
+========================================
+
+| ``std::is_same::value || std::is_same::value``.
+
+Returns
+========================================
+
+| ``basic_string(*this, pos, n1).compare(basic_string(s))``.
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ template
+ SPROUT_CONSTEXPR int compare(size_type pos1, size_type n1, StringConstIterator s, size_type n2) const;
+
+Requires
+========================================
+
+| ``std::is_same::value || std::is_same::value``.
+
+Returns
+========================================
+
+| ``basic_string(*this, pos, n1).compare(basic_string(s, n2))``.
+
+Header
+========================================
+
+| ``sprout/string/string.hpp``
+| Convenience header: ``sprout/string.hpp``
+
diff --git a/docs/_sources/libs/string/basic_string/compare.txt b/docs/_sources/libs/string/basic_string/compare.txt
new file mode 100644
index 00000000..b7ecfa62
--- /dev/null
+++ b/docs/_sources/libs/string/basic_string/compare.txt
@@ -0,0 +1,111 @@
+.. _sprout-string-basic_string-compare:
+###############################################################################
+compare
+###############################################################################
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ template
+ SPROUT_CONSTEXPR int compare(basic_string const& str) const;
+
+Effects
+========================================
+
+| Determines the effective length rlen of the strings to compare as the smallest of ``size()`` and ``str.size()``.
+| The function then compares the two strings by calling ``traits_type::compare(data(), str.data(), rlen)``.
+
+Examples
+========================================
+.. sourcecode:: c++
+
+ #include
+ using namespace sprout;
+
+ SPROUT_STATIC_CONSTEXPR auto x = string<8>("homuhomu");
+ SPROUT_STATIC_CONSTEXPR auto y = string<8>("madocchi");
+ SPROUT_STATIC_CONSTEXPR auto result = x.compare(y);
+ static_assert(result < 0, "x is less than y.");
+
+Complexity
+========================================
+
+| Recursive function invocations in *O(logN)* (logarithmic) depth.
+
+.. note::
+ The current implementation is incomplete. *O(N)* (linear) depth.
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ template
+ SPROUT_CONSTEXPR int compare(size_type pos1, size_type n1, basic_string const& str) const;
+
+Returns
+========================================
+
+| ``basic_string(*this, pos1, n1).compare(str)``.
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ template
+ SPROUT_CONSTEXPR int compare(size_type pos1, size_type n1, basic_string const& str, size_type pos2, size_type n2) const;
+
+Returns
+========================================
+
+| ``basic_string(*this, pos1, n1).compare(basic_string(str, pos2, n2))``.
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ SPROUT_CONSTEXPR int compare(value_type const* s) const;
+
+Returns
+========================================
+
+| ``compare(basic_string(s))``.
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ SPROUT_CONSTEXPR int compare(size_type pos1, size_type n1, value_type const* s) const;
+
+Returns
+========================================
+
+| ``basic_string(*this, pos, n1).compare(basic_string(s))``.
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ SPROUT_CONSTEXPR int compare(size_type pos1, size_type n1, value_type const* s, size_type n2) const;
+
+Returns
+========================================
+
+| ``basic_string(*this, pos, n1).compare(basic_string(s, n2))``.
+
+Header
+========================================
+
+| ``sprout/string/string.hpp``
+| Convenience header: ``sprout/string.hpp``
+
diff --git a/docs/_sources/libs/string/basic_string/find.txt b/docs/_sources/libs/string/basic_string/find.txt
new file mode 100644
index 00000000..d635e9e1
--- /dev/null
+++ b/docs/_sources/libs/string/basic_string/find.txt
@@ -0,0 +1,94 @@
+.. _sprout-string-basic_string-find:
+###############################################################################
+find
+###############################################################################
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ template
+ SPROUT_CONSTEXPR size_type find(basic_string const& str, size_type pos = 0) const SPROUT_NOEXCEPT;
+
+Effects
+========================================
+
+| Determines the lowest position xpos, if possible, such that both of the following conditions obtain:
+
+* ``pos <= xpos and xpos + str.size() <= size();``
+* ``traits_type::eq(at(xpos + I), str.at(I))`` for all elements I of the string controlled by str.
+
+Returns
+========================================
+
+| xpos if the function can determine such a value for xpos. Otherwise, returns npos.
+
+Remarks
+========================================
+
+| Uses ``traits_type::eq()``.
+
+Examples
+========================================
+.. sourcecode:: c++
+
+ #include
+ using namespace sprout;
+
+ SPROUT_STATIC_CONSTEXPR auto input = string<8>("madocchi");
+ SPROUT_STATIC_CONSTEXPR auto result = input.find("cchi");
+ static_assert(result == 4, "a found position is 4.");
+
+Complexity
+========================================
+
+| Recursive function invocations in *O(logN)* (logarithmic) depth.
+
+.. note::
+ The current implementation is incomplete. *O(N)* (linear) depth.
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ SPROUT_CONSTEXPR size_type find(value_type const* s, size_type pos, size_type n) const;
+
+Returns
+========================================
+
+|
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ SPROUT_CONSTEXPR size_type find(value_type const* s, size_type pos = 0) const;
+
+Returns
+========================================
+
+|
+
+----
+
+Interface
+========================================
+.. sourcecode:: c++
+
+ SPROUT_CONSTEXPR size_type find(value_type c, size_type pos = 0) const;
+
+Returns
+========================================
+
+|
+
+Header
+========================================
+
+| ``sprout/string/string.hpp``
+| Convenience header: ``sprout/string.hpp``
+
diff --git a/docs/_sources/libs/string/basic_string/operator-assign-iterator.txt b/docs/_sources/libs/string/basic_string/operator-assign-iterator.txt
index dc4049ba..f770b243 100644
--- a/docs/_sources/libs/string/basic_string/operator-assign-iterator.txt
+++ b/docs/_sources/libs/string/basic_string/operator-assign-iterator.txt
@@ -35,8 +35,10 @@ Examples
auto x = string<8>("homuhomu");
SPROUT_STATIC_CONSTEXPR auto y = string<8>("madocchi");
- x = y.begin();
- SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ int main() {
+ x = y.begin();
+ SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ }
Header
========================================
diff --git a/docs/_sources/libs/string/basic_string/operator-assign.txt b/docs/_sources/libs/string/basic_string/operator-assign.txt
index 43d1e505..f70364f4 100644
--- a/docs/_sources/libs/string/basic_string/operator-assign.txt
+++ b/docs/_sources/libs/string/basic_string/operator-assign.txt
@@ -34,8 +34,10 @@ Examples
auto x = string<8>("homuhomu");
SPROUT_STATIC_CONSTEXPR auto y = string<8>("madocchi");
- x = y;
- SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ int main() {
+ x = y;
+ SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ }
----
diff --git a/docs/_sources/libs/string/basic_string/resize.txt b/docs/_sources/libs/string/basic_string/resize.txt
index b7530ce7..11b8cf6f 100644
--- a/docs/_sources/libs/string/basic_string/resize.txt
+++ b/docs/_sources/libs/string/basic_string/resize.txt
@@ -39,8 +39,10 @@ Examples
using namespace sprout;
auto x = string<8>("homuhomu");
- x.resize(4);
- SPROUT_ASSERT_MSG(x.size() == 4 && x == "homu", "string is resized to 4.");
+ int main() {
+ x.resize(4);
+ SPROUT_ASSERT_MSG(x.size() == 4 && x == "homu", "string is resized to 4.");
+ }
Header
========================================
diff --git a/docs/_sources/libs/string/basic_string/std-tuple_size.txt b/docs/_sources/libs/string/basic_string/std-tuple_size.txt
index 8fb06baf..371c5ee8 100644
--- a/docs/_sources/libs/string/basic_string/std-tuple_size.txt
+++ b/docs/_sources/libs/string/basic_string/std-tuple_size.txt
@@ -33,8 +33,8 @@ Examples
using namespace sprout;
using type = string<8>;
- SPROUT_STATIC_CONSTEXPR auto size = std::tuple_size::value;
- static_assert(size == 8, "tuple size of string is 8.");
+ SPROUT_STATIC_CONSTEXPR auto n = std::tuple_size::value;
+ static_assert(n == 8, "tuple size of string is 8.");
Header
========================================
diff --git a/docs/_sources/libs/string/basic_string/swap-global.txt b/docs/_sources/libs/string/basic_string/swap-global.txt
index 16bb94b6..628dd868 100644
--- a/docs/_sources/libs/string/basic_string/swap-global.txt
+++ b/docs/_sources/libs/string/basic_string/swap-global.txt
@@ -32,8 +32,10 @@ Examples
auto x = string<8>("homuhomu");
auto y = string<8>("madocchi");
- swap(x, y);
- SPROUT_ASSERT_MSG(x == "madocchi" && y == "homuhomu", "each element are swapped.");
+ int main() {
+ swap(x, y);
+ SPROUT_ASSERT_MSG(x == "madocchi" && y == "homuhomu", "each element are swapped.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/basic_string/swap.txt b/docs/_sources/libs/string/basic_string/swap.txt
index a95ddac1..2aefb188 100644
--- a/docs/_sources/libs/string/basic_string/swap.txt
+++ b/docs/_sources/libs/string/basic_string/swap.txt
@@ -29,8 +29,10 @@ Examples
auto x = string<8>("homuhomu");
auto y = string<8>("madocchi");
- swap(x, y);
- SPROUT_ASSERT_MSG(x == "madocchi" && y == "homuhomu", "each element are swapped.");
+ int main() {
+ swap(x, y);
+ SPROUT_ASSERT_MSG(x == "madocchi" && y == "homuhomu", "each element are swapped.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/char_traits/assign-iterator.txt b/docs/_sources/libs/string/char_traits/assign-iterator.txt
index 0d09e506..c2e0f9e1 100644
--- a/docs/_sources/libs/string/char_traits/assign-iterator.txt
+++ b/docs/_sources/libs/string/char_traits/assign-iterator.txt
@@ -24,8 +24,10 @@ Examples
using namespace sprout;
auto x = string<8>("homuhomu");;
- char_traits::assign(x.begin(), 8, 'M');
- SPROUT_ASSERT_MSG(x[0] == 'M', "x is filled by M.");
+ int main() {
+ char_traits::assign(x.begin(), 8, 'M');
+ SPROUT_ASSERT_MSG(x[0] == 'M', "x is filled by M.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/char_traits/assign-string.txt b/docs/_sources/libs/string/char_traits/assign-string.txt
index ed0cec18..ca84a5f5 100644
--- a/docs/_sources/libs/string/char_traits/assign-string.txt
+++ b/docs/_sources/libs/string/char_traits/assign-string.txt
@@ -23,8 +23,10 @@ Examples
using namespace sprout;
char x[] = "homuhomu";
- char_traits::assign(x, 8, 'M');
- SPROUT_ASSERT_MSG(x[0] == 'M', "x is filled by M.");
+ int main() {
+ char_traits::assign(x, 8, 'M');
+ SPROUT_ASSERT_MSG(x[0] == 'M', "x is filled by M.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/char_traits/assign.txt b/docs/_sources/libs/string/char_traits/assign.txt
index e5e33ee2..338c0969 100644
--- a/docs/_sources/libs/string/char_traits/assign.txt
+++ b/docs/_sources/libs/string/char_traits/assign.txt
@@ -24,8 +24,10 @@ Examples
char x = 'H';
SPROUT_STATIC_CONSTEXPR char y = 'M';
- char_traits::assign(x, y);
- SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ int main() {
+ char_traits::assign(x, y);
+ SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/char_traits/copy-iterator.txt b/docs/_sources/libs/string/char_traits/copy-iterator.txt
index 05255790..f153619a 100644
--- a/docs/_sources/libs/string/char_traits/copy-iterator.txt
+++ b/docs/_sources/libs/string/char_traits/copy-iterator.txt
@@ -30,8 +30,10 @@ Examples
auto x = string<8>("homuhomu");;
SPROUT_STATIC_CONSTEXPR auto y = string<8>("madocchi");
- char_traits::copy(x.begin(), y.begin(), 8);
- SPROUT_ASSERT_MSG(x[0] == y[0], "y is copied to x.");
+ int main() {
+ char_traits::copy(x.begin(), y.begin(), 8);
+ SPROUT_ASSERT_MSG(x[0] == y[0], "y is copied to x.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/char_traits/copy.txt b/docs/_sources/libs/string/char_traits/copy.txt
index 801a4342..9b28545d 100644
--- a/docs/_sources/libs/string/char_traits/copy.txt
+++ b/docs/_sources/libs/string/char_traits/copy.txt
@@ -29,8 +29,10 @@ Examples
char x[] = "homuhomu";
SPROUT_STATIC_CONSTEXPR char const* y = "madocchi";
- char_traits::copy(x, y, 8);
- SPROUT_ASSERT_MSG(x[0] == y[0], "y is copied to x.");
+ int main() {
+ char_traits::copy(x, y, 8);
+ SPROUT_ASSERT_MSG(x[0] == y[0], "y is copied to x.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/char_traits/move-iterator.txt b/docs/_sources/libs/string/char_traits/move-iterator.txt
index 1f9c0545..c5b8f701 100644
--- a/docs/_sources/libs/string/char_traits/move-iterator.txt
+++ b/docs/_sources/libs/string/char_traits/move-iterator.txt
@@ -26,8 +26,10 @@ Examples
auto x = string<8>("homuhomu");;
SPROUT_STATIC_CONSTEXPR auto y = string<8>("madocchi");
- char_traits::move(x.begin(), y.begin(), 8);
- SPROUT_ASSERT_MSG(x[0] == y[0], "y is copied to x.");
+ int main() {
+ char_traits::move(x.begin(), y.begin(), 8);
+ SPROUT_ASSERT_MSG(x[0] == y[0], "y is copied to x.");
+ }
Complexity
========================================
diff --git a/docs/_sources/libs/string/char_traits/move.txt b/docs/_sources/libs/string/char_traits/move.txt
index 80a0fc7e..f56c95bf 100644
--- a/docs/_sources/libs/string/char_traits/move.txt
+++ b/docs/_sources/libs/string/char_traits/move.txt
@@ -24,8 +24,10 @@ Examples
char x[] = "homuhomu";
SPROUT_STATIC_CONSTEXPR char const* y = "madocchi";
- char_traits::move(x, y, 8);
- SPROUT_ASSERT_MSG(x[0] == y[0], "y is copied to x.");
+ int main() {
+ char_traits::move(x, y, 8);
+ SPROUT_ASSERT_MSG(x[0] == y[0], "y is copied to x.");
+ }
Complexity
========================================
diff --git a/docs/libs/array/array/assign.html b/docs/libs/array/array/assign.html
index 5860059a..9846321d 100644
--- a/docs/libs/array/array/assign.html
+++ b/docs/libs/array/array/assign.html
@@ -136,8 +136,10 @@
using namespace sprout ;
auto x = array < int , 10 > {{ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }};
-x . assign ( 0 );
-SPROUT_ASSERT_MSG ( x [ 0 ] == 0 , "filled with 0." );
+int main () {
+ x . assign ( 0 );
+ SPROUT_ASSERT_MSG ( x [ 0 ] == 0 , "filled with 0." );
+}
#include <sprout/array.hpp>
diff --git a/docs/libs/array/array/fill.html b/docs/libs/array/array/fill.html
index f7028983..c6a2cd50 100644
--- a/docs/libs/array/array/fill.html
+++ b/docs/libs/array/array/fill.html
@@ -136,8 +136,10 @@
using namespace sprout ;
auto x = array < int , 10 > {{ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }};
-x . fill ( 0 );
-SPROUT_ASSERT_MSG ( x [ 0 ] == 0 , "filled with 0." );
+int main () {
+ x . fill ( 0 );
+ SPROUT_ASSERT_MSG ( x [ 0 ] == 0 , "filled with 0." );
+}
#include <sprout/array.hpp>
diff --git a/docs/libs/array/array/operator-assign.html b/docs/libs/array/array/operator-assign.html
index f7246041..d01ac997 100644
--- a/docs/libs/array/array/operator-assign.html
+++ b/docs/libs/array/array/operator-assign.html
@@ -140,8 +140,10 @@
auto x = array < int , 10 > {{ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }};
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." );
+int main () {
+ x = y ;
+ SPROUT_ASSERT_MSG ( x == y , "y is assigned to x." );
+}
diff --git a/docs/libs/array/array/std-tuple_size.html b/docs/libs/array/array/std-tuple_size.html
index 839fa9ec..0edfcabf 100644
--- a/docs/libs/array/array/std-tuple_size.html
+++ b/docs/libs/array/array/std-tuple_size.html
@@ -137,8 +137,8 @@
using namespace sprout ;
using type = array < int , 10 > ;
-SPROUT_STATIC_CONSTEXPR auto size = std :: tuple_size < type >:: value ;
-static_assert ( size == 10 , "tuple size of array is 10." );
+SPROUT_STATIC_CONSTEXPR auto n = std :: tuple_size < type >:: value ;
+static_assert ( n == 10 , "tuple size of array is 10." );
diff --git a/docs/libs/array/array/swap-global.html b/docs/libs/array/array/swap-global.html
index 6a7952a0..efe995e4 100644
--- a/docs/libs/array/array/swap-global.html
+++ b/docs/libs/array/array/swap-global.html
@@ -137,8 +137,10 @@
auto x = array < int , 10 > {{ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }};
auto y = array < int , 10 > {{ 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 }};
-swap ( x , y );
-SPROUT_ASSERT_MSG ( x [ 0 ] = 10 && y [ 0 ] == 1 , "each element are swapped." );
+int main () {
+ swap ( x , y );
+ SPROUT_ASSERT_MSG ( x [ 0 ] == 10 && y [ 0 ] == 1 , "each element are swapped." );
+}
diff --git a/docs/libs/array/array/swap.html b/docs/libs/array/array/swap.html
index 6dc36e1c..b136cccb 100644
--- a/docs/libs/array/array/swap.html
+++ b/docs/libs/array/array/swap.html
@@ -135,8 +135,10 @@
auto x = array < int , 10 > {{ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }};
auto y = array < int , 10 > {{ 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 }};
-x . swap ( y );
-SPROUT_ASSERT_MSG ( x [ 0 ] == 10 && y [ 0 ] == 1 , "each element are swapped." );
+int main () {
+ x . swap ( y );
+ SPROUT_ASSERT_MSG ( x [ 0 ] == 10 && y [ 0 ] == 1 , "each element are swapped." );
+}
diff --git a/docs/libs/string/basic_string/assign-iterator.html b/docs/libs/string/basic_string/assign-iterator.html
index 16c15567..a7a43026 100644
--- a/docs/libs/string/basic_string/assign-iterator.html
+++ b/docs/libs/string/basic_string/assign-iterator.html
@@ -38,7 +38,7 @@
-
+
@@ -49,7 +49,7 @@
index
- next |
operator=
Next topic
- string
+ compare
This Page