mem-fun Questions
4
Can someone recommend some cool practical uses of tr1's mem_fn and bind utilities? I don't need esoteric c++ for library development. just some application level coding which makes uses of these.
...
4
Solved
I have a C++ class where I'm trying to use std::bind1st to bind a member function to the 'this' parameter. For example:
class MyClass
{
public:
void Foo()
{
using namespace std;
// this works...
1
If I have a class (that mimic some of STL's container) like this:
class Elem {
public:
void prepare(); // do something on *this
// ...
};
class Selector {
public:
typedef vector<Elem *>...
Pinkeye asked 18/10, 2010 at 5:46
2
I've following class:
class A {
public:
// ctr and etc ...
A* clone(B* container);
};
Now, I've a vector<A*> availableObjs populated already. I want to call clone on each of those, so and ...
1
© 2022 - 2024 — McMap. All rights reserved.