From 46ad495a608b334d0a0f391cd3785c04b65ea727 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 1 Nov 2022 21:46:38 -0400 Subject: [PATCH] spelling: uninitialized Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- doc/01_quick_start.qbk | 2 +- doc/html/boost_optional/development.html | 4 ++-- .../quick_start/optional_automatic_variables.html | 2 +- doc/html/boost_optional/tutorial.html | 4 ++-- test/optional_test.cpp | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/01_quick_start.qbk b/doc/01_quick_start.qbk index ae5f828..223603d 100644 --- a/doc/01_quick_start.qbk +++ b/doc/01_quick_start.qbk @@ -91,7 +91,7 @@ We could write function `convert` in a slightly different manner, so that it has return ans; } -The default constructor of `optional` creates an unitialized optional object. Unlike with `int`s you cannot have an `optional` in an indeterminate state. Its state is always well defined. Instruction `ans = i` initializes the optional object. It uses the 'mixed' assignment from `int`. In general, for `optional`, when an assignment from `T` is invoked, it can do two things. If the optional object is not initialized (our case here), it initializes the contained value using `T`'s copy constructor. If the optional object is already initialized, it assigns the new value to it using `T`'s copy assignment. +The default constructor of `optional` creates an uninitialized optional object. Unlike with `int`s you cannot have an `optional` in an indeterminate state. Its state is always well defined. Instruction `ans = i` initializes the optional object. It uses the 'mixed' assignment from `int`. In general, for `optional`, when an assignment from `T` is invoked, it can do two things. If the optional object is not initialized (our case here), it initializes the contained value using `T`'s copy constructor. If the optional object is already initialized, it assigns the new value to it using `T`'s copy assignment. [endsect] [section Optional data members] diff --git a/doc/html/boost_optional/development.html b/doc/html/boost_optional/development.html index 70bc6e4..21e6db4 100644 --- a/doc/html/boost_optional/development.html +++ b/doc/html/boost_optional/development.html @@ -293,8 +293,8 @@

- Lexically-hinted - Value Access in the presence of possibly untitialized optional objects: The + Lexically-hinted + Value Access in the presence of possibly uninitialized optional objects: The operators * and ->

diff --git a/doc/html/boost_optional/quick_start/optional_automatic_variables.html b/doc/html/boost_optional/quick_start/optional_automatic_variables.html index 54b4835..e4bf47a 100644 --- a/doc/html/boost_optional/quick_start/optional_automatic_variables.html +++ b/doc/html/boost_optional/quick_start/optional_automatic_variables.html @@ -44,7 +44,7 @@

The default constructor of optional - creates an unitialized optional object. Unlike with ints + creates an uninitialized optional object. Unlike with ints you cannot have an optional<int> in an indeterminate state. Its state is always well defined. Instruction ans = diff --git a/doc/html/boost_optional/tutorial.html b/doc/html/boost_optional/tutorial.html index 8f033e8..9cee12a 100644 --- a/doc/html/boost_optional/tutorial.html +++ b/doc/html/boost_optional/tutorial.html @@ -398,8 +398,8 @@

- Lexically-hinted - Value Access in the presence of possibly untitialized optional objects: + Lexically-hinted + Value Access in the presence of possibly uninitialized optional objects: The operators * and ->

diff --git a/test/optional_test.cpp b/test/optional_test.cpp index 80beb41..3669a4b 100644 --- a/test/optional_test.cpp +++ b/test/optional_test.cpp @@ -727,7 +727,7 @@ void test_relops( T const* ) BOOST_TEST ( !(def0 != def0) ) ; BOOST_TEST ( !(opt0 != opt0) ) ; - // Check when both are uininitalized. + // Check when both are uninitialized. BOOST_TEST ( def0 == def1 ) ; // both uninitialized compare equal BOOST_TEST ( !(def0 < def1) ) ; // uninitialized is never less than uninitialized BOOST_TEST ( !(def0 > def1) ) ; // uninitialized is never greater than uninitialized