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. ...
Sidedress asked 14/4, 2012 at 20:36

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...
Pasty asked 3/8, 2010 at 18:50

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 *&gt...
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 ...
Suprasegmental asked 19/11, 2009 at 11:52
1

© 2022 - 2024 — McMap. All rights reserved.