Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
94ce52d4
Unverified
Commit
94ce52d4
authored
Apr 20, 2018
by
Jonathan Cohen
Committed by
GitHub
Apr 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #101 from waywardmonkeys/fix-typos
Fix some typos.
parents
faf0a1b9
08760add
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
15 deletions
+15
-15
absl/algorithm/container.h
+1
-1
absl/base/casts.h
+1
-1
absl/base/config.h
+1
-1
absl/container/inlined_vector.h
+1
-1
absl/meta/type_traits.h
+3
-3
absl/strings/ascii.h
+2
-2
absl/types/any.h
+5
-5
absl/types/span.h
+1
-1
No files found.
absl/algorithm/container.h
View file @
94ce52d4
...
@@ -1578,7 +1578,7 @@ decay_t<T> c_inner_product(const Sequence1& factors1, const Sequence2& factors2,
...
@@ -1578,7 +1578,7 @@ decay_t<T> c_inner_product(const Sequence1& factors1, const Sequence2& factors2,
}
}
// Overload of c_inner_product() for using binary operations other than
// Overload of c_inner_product() for using binary operations other than
// `operator+` (for computing the accumlation) and `operator*` (for computing
// `operator+` (for computing the accum
u
lation) and `operator*` (for computing
// the product between the two container's element pair).
// the product between the two container's element pair).
template
<
typename
Sequence1
,
typename
Sequence2
,
typename
T
,
template
<
typename
Sequence1
,
typename
Sequence2
,
typename
T
,
typename
BinaryOp1
,
typename
BinaryOp2
>
typename
BinaryOp1
,
typename
BinaryOp2
>
...
...
absl/base/casts.h
View file @
94ce52d4
...
@@ -123,7 +123,7 @@ inline To implicit_cast(typename absl::internal::identity_t<To> to) {
...
@@ -123,7 +123,7 @@ inline To implicit_cast(typename absl::internal::identity_t<To> to) {
//
//
// Such casting results in type punning: holding an object in memory of one type
// Such casting results in type punning: holding an object in memory of one type
// and reading its bits back using a different type. A `bit_cast()` avoids this
// and reading its bits back using a different type. A `bit_cast()` avoids this
// issue by implement
at
ing its casts using `memcpy()`, which avoids introducing
// issue by implementing its casts using `memcpy()`, which avoids introducing
// this undefined behavior.
// this undefined behavior.
template
<
typename
Dest
,
typename
Source
>
template
<
typename
Dest
,
typename
Source
>
inline
Dest
bit_cast
(
const
Source
&
source
)
{
inline
Dest
bit_cast
(
const
Source
&
source
)
{
...
...
absl/base/config.h
View file @
94ce52d4
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
// family of functions as standardized in POSIX.1-2001.
// family of functions as standardized in POSIX.1-2001.
//
//
// Note: While Apple provides <semaphore.h> for both iOS and macOS, it is
// Note: While Apple provides <semaphore.h> for both iOS and macOS, it is
// explicity deprecated and will cause build failures if enabled for those
// explicit
l
y deprecated and will cause build failures if enabled for those
// platforms. We side-step the issue by not defining it here for Apple
// platforms. We side-step the issue by not defining it here for Apple
// platforms.
// platforms.
#ifdef ABSL_HAVE_SEMAPHORE_H
#ifdef ABSL_HAVE_SEMAPHORE_H
...
...
absl/container/inlined_vector.h
View file @
94ce52d4
...
@@ -549,7 +549,7 @@ class InlinedVector {
...
@@ -549,7 +549,7 @@ class InlinedVector {
}
}
// Overload of InlinedVector::erase() for erasing all elements in the
// Overload of InlinedVector::erase() for erasing all elements in the
// itera
r
or range [first, last) in the inlined vector, returning an iterator
// itera
t
or range [first, last) in the inlined vector, returning an iterator
// pointing to the first element following the range erased, or the
// pointing to the first element following the range erased, or the
// container's end if range included the container's last element.
// container's end if range included the container's last element.
iterator
erase
(
const_iterator
first
,
const_iterator
last
);
iterator
erase
(
const_iterator
first
,
const_iterator
last
);
...
...
absl/meta/type_traits.h
View file @
94ce52d4
...
@@ -73,7 +73,7 @@ struct default_alignment_of_aligned_storage<Len,
...
@@ -73,7 +73,7 @@ struct default_alignment_of_aligned_storage<Len,
// `std::void_t` metafunction.
// `std::void_t` metafunction.
//
//
// NOTE: `absl::void_t` does not use the standard-specified implementation so
// NOTE: `absl::void_t` does not use the standard-specified implementation so
// that it can remain compatib
i
le with gcc < 5.1. This can introduce slightly
// that it can remain compatible with gcc < 5.1. This can introduce slightly
// different behavior, such as when ordering partial specializations.
// different behavior, such as when ordering partial specializations.
template
<
typename
...
Ts
>
template
<
typename
...
Ts
>
using
void_t
=
typename
type_traits_internal
::
VoidTImpl
<
Ts
...
>::
type
;
using
void_t
=
typename
type_traits_internal
::
VoidTImpl
<
Ts
...
>::
type
;
...
@@ -194,7 +194,7 @@ struct is_trivially_destructible
...
@@ -194,7 +194,7 @@ struct is_trivially_destructible
// LWG issue 2116: http://cplusplus.github.io/LWG/lwg-active.html#2116.
// LWG issue 2116: http://cplusplus.github.io/LWG/lwg-active.html#2116.
//
//
// "T obj();" need to be well-formed and not call any nontrivial operation.
// "T obj();" need to be well-formed and not call any nontrivial operation.
// Nontrivally destructible types will cause the expression to be nontrivial.
// Nontriv
i
ally destructible types will cause the expression to be nontrivial.
template
<
typename
T
>
template
<
typename
T
>
struct
is_trivially_default_constructible
struct
is_trivially_default_constructible
:
std
::
integral_constant
<
bool
,
__has_trivial_constructor
(
T
)
&&
:
std
::
integral_constant
<
bool
,
__has_trivial_constructor
(
T
)
&&
...
@@ -225,7 +225,7 @@ struct is_trivially_default_constructible
...
@@ -225,7 +225,7 @@ struct is_trivially_default_constructible
// implementation.
// implementation.
//
//
// NOTE: `T obj(declval<const T&>());` needs to be well-formed and not call any
// NOTE: `T obj(declval<const T&>());` needs to be well-formed and not call any
// nontrivial operation. Nontrivally destructible types will cause the
// nontrivial operation. Nontriv
i
ally destructible types will cause the
// expression to be nontrivial.
// expression to be nontrivial.
template
<
typename
T
>
template
<
typename
T
>
struct
is_trivially_copy_constructible
struct
is_trivially_copy_constructible
...
...
absl/strings/ascii.h
View file @
94ce52d4
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
// `ascii_iscntrl()`, `ascii_isdigit()`, `ascii_isgraph()`, `ascii_islower()`,
// `ascii_iscntrl()`, `ascii_isdigit()`, `ascii_isgraph()`, `ascii_islower()`,
// `ascii_isprint()`, `ascii_ispunct()`, `ascii_isspace()`, `ascii_isupper()`,
// `ascii_isprint()`, `ascii_ispunct()`, `ascii_isspace()`, `ascii_isupper()`,
// `ascii_isxdigit()`
// `ascii_isxdigit()`
// Anal
a
gous to the <ctype.h> functions with similar names, these
// Anal
o
gous to the <ctype.h> functions with similar names, these
// functions take an unsigned char and return a bool, based on whether the
// functions take an unsigned char and return a bool, based on whether the
// character matches the condition specified.
// character matches the condition specified.
//
//
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
// functions return `false`.
// functions return `false`.
//
//
// `ascii_tolower()`, `ascii_toupper()`
// `ascii_tolower()`, `ascii_toupper()`
// Anal
a
gous to the <ctype.h> functions with similar names, these functions
// Anal
o
gous to the <ctype.h> functions with similar names, these functions
// take an unsigned char and return a char.
// take an unsigned char and return a char.
//
//
// If the input character is not an ASCII {lower,upper}-case letter (including
// If the input character is not an ASCII {lower,upper}-case letter (including
...
...
absl/types/any.h
View file @
94ce52d4
...
@@ -193,13 +193,13 @@ ValueType* any_cast(any* operand) noexcept;
...
@@ -193,13 +193,13 @@ ValueType* any_cast(any* operand) noexcept;
// auto c = absl::any(std::move(my_foo)); // Error, not copy-constructable
// auto c = absl::any(std::move(my_foo)); // Error, not copy-constructable
//
//
// Note that `absl::any` makes use of decayed types (`absl::decay_t` in this
// Note that `absl::any` makes use of decayed types (`absl::decay_t` in this
// context) to remove const-volati
v
e qualifiers (known as "cv qualifiers"),
// context) to remove const-volati
l
e qualifiers (known as "cv qualifiers"),
// decay functions to function pointers, etc. We essentially "decay" a given
// decay functions to function pointers, etc. We essentially "decay" a given
// type into its essential type.
// type into its essential type.
//
//
// `absl::any` makes use of decayed types when determing the basic type `T` of
// `absl::any` makes use of decayed types when determin
in
g the basic type `T` of
// the value to store in the any's contained object. In the documentation below,
// the value to store in the any's contained object. In the documentation below,
// we explcitly denote this by using the phrase "a decayed type of `T`".
// we expl
i
citly denote this by using the phrase "a decayed type of `T`".
//
//
// Example:
// Example:
//
//
...
@@ -324,7 +324,7 @@ class any {
...
@@ -324,7 +324,7 @@ class any {
// Overload of `any::emplace()` to emplace a value within an `absl::any`
// Overload of `any::emplace()` to emplace a value within an `absl::any`
// object by calling `any::reset()`, initializing the contained value as if
// object by calling `any::reset()`, initializing the contained value as if
// direct-non-list-initializing an object of type `VT` with the arguments
// direct-non-list-initializing an object of type `VT` with the arguments
// `initilizer_list, std::forward<Args>(args)...`, and returning a reference
// `initi
a
lizer_list, std::forward<Args>(args)...`, and returning a reference
// to the new contained value.
// to the new contained value.
//
//
// Note: If an exception is thrown during the call to `VT`'s constructor,
// Note: If an exception is thrown during the call to `VT`'s constructor,
...
@@ -356,7 +356,7 @@ class any {
...
@@ -356,7 +356,7 @@ class any {
// Swaps the passed value and the value of this `absl::any` object.
// Swaps the passed value and the value of this `absl::any` object.
void
swap
(
any
&
other
)
noexcept
{
obj_
.
swap
(
other
.
obj_
);
}
void
swap
(
any
&
other
)
noexcept
{
obj_
.
swap
(
other
.
obj_
);
}
// Observ
o
rs
// Observ
e
rs
// any::has_value()
// any::has_value()
//
//
...
...
absl/types/span.h
View file @
94ce52d4
...
@@ -224,7 +224,7 @@ using EnableIfConvertibleToSpanConst =
...
@@ -224,7 +224,7 @@ using EnableIfConvertibleToSpanConst =
// point to remains alive, must also ensure that such memory does not get
// point to remains alive, must also ensure that such memory does not get
// reallocated. Therefore, to avoid undefined behavior, containers with
// reallocated. Therefore, to avoid undefined behavior, containers with
// associated span views should not invoke operations that may reallocate memory
// associated span views should not invoke operations that may reallocate memory
// (such as resizing) or invalidate itera
r
ors into the container.
// (such as resizing) or invalidate itera
t
ors into the container.
//
//
// One common use for a `Span` is when passing arguments to a routine that can
// One common use for a `Span` is when passing arguments to a routine that can
// accept a variety of array types (e.g. a `std::vector`, `absl::InlinedVector`,
// accept a variety of array types (e.g. a `std::vector`, `absl::InlinedVector`,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment