Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
5cf35218
Commit
5cf35218
authored
20 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
remove some more dead templates and a dead macro.
llvm-svn: 20279
parent
ccdfdd7a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/include/llvm/ADT/STLExtras.h
+0
-33
0 additions, 33 deletions
llvm/include/llvm/ADT/STLExtras.h
with
0 additions
and
33 deletions
llvm/include/llvm/ADT/STLExtras.h
+
0
−
33
View file @
5cf35218
...
...
@@ -27,39 +27,6 @@ namespace llvm {
// Extra additions to <functional>
//===----------------------------------------------------------------------===//
// bind_obj - Often times you want to apply the member function of an object
// as a unary functor. This macro is shorthand that makes it happen less
// verbosely.
//
// Example:
// struct Summer { void accumulate(int x); }
// vector<int> Numbers;
// Summer MyS;
// for_each(Numbers.begin(), Numbers.end(),
// bind_obj(&MyS, &Summer::accumulate));
//
// TODO: When I get lots of extra time, convert this from an evil macro
//
#define bind_obj(OBJ, METHOD) std::bind1st(std::mem_fun(METHOD), OBJ)
// bitwise_or - This is a simple functor that applys operator| on its two
// arguments to get a boolean result.
//
template
<
class
Ty
>
struct
bitwise_or
:
public
std
::
binary_function
<
Ty
,
Ty
,
bool
>
{
bool
operator
()(
const
Ty
&
left
,
const
Ty
&
right
)
const
{
return
left
|
right
;
}
};
template
<
class
Ty
>
struct
less_ptr
:
public
std
::
binary_function
<
Ty
,
Ty
,
bool
>
{
bool
operator
()(
const
Ty
*
left
,
const
Ty
*
right
)
const
{
return
*
left
<
*
right
;
}
};
template
<
class
Ty
>
struct
greater_ptr
:
public
std
::
binary_function
<
Ty
,
Ty
,
bool
>
{
bool
operator
()(
const
Ty
*
left
,
const
Ty
*
right
)
const
{
...
...
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