Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
abseil-cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Archive
Third Party Libraries
abseil-cpp
Commits
b7bdd3a6
Commit
b7bdd3a6
authored
7 years ago
by
Bronek Kozicki
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused type_id() function
parent
89f1f531
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
absl/types/any.h
+1
-12
1 addition, 12 deletions
absl/types/any.h
with
1 addition
and
12 deletions
absl/types/any.h
+
1
−
12
View file @
b7bdd3a6
...
@@ -383,16 +383,6 @@ class any {
...
@@ -383,16 +383,6 @@ class any {
#if ABSL_ANY_DETAIL_HAS_RTTI
#if ABSL_ANY_DETAIL_HAS_RTTI
virtual
const
std
::
type_info
&
Type
()
const
noexcept
=
0
;
virtual
const
std
::
type_info
&
Type
()
const
noexcept
=
0
;
#endif // ABSL_ANY_DETAIL_HAS_RTTI
#endif // ABSL_ANY_DETAIL_HAS_RTTI
// Note that on 64-bit (unix) systems size_t is 64-bit while int is 32-bit and
// the compiler will happily and quietly assign such a 64-bit value to a
// 32-bit integer. While a client should never do that it SHOULD still be safe,
// assuming the BSS segment doesn't span more than 4GiB.
size_t
type_id
()
const
noexcept
{
static_assert
(
sizeof
(
void
*
)
<=
sizeof
(
size_t
),
"ptr size too large for size_t"
);
return
reinterpret_cast
<
size_t
>
(
ObjTypeId
());
}
};
};
// Hold a value of some queryable type, with an ability to Clone it.
// Hold a value of some queryable type, with an ability to Clone it.
...
@@ -431,8 +421,7 @@ class any {
...
@@ -431,8 +421,7 @@ class any {
}
}
const
void
*
GetObjTypeId
()
const
{
const
void
*
GetObjTypeId
()
const
{
return
obj_
==
nullptr
?
any_internal
::
FastTypeId
<
void
>
()
return
obj_
?
obj_
->
ObjTypeId
()
:
any_internal
::
FastTypeId
<
void
>
();
:
obj_
->
ObjTypeId
();
}
}
// `absl::any` nonmember functions //
// `absl::any` nonmember functions //
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment