Top "Tr1" questions

TR1 - C++ Technical Report 1, proposed extensions to the C++ standard library

Using generic std::function objects with member functions in one class

For one class I want to store some function pointers to member functions of the same class in one map …

c++ function function-pointers c++11 tr1
What is the usefulness of `enable_shared_from_this`?

I ran across enable_shared_from_this while reading the Boost.Asio examples and after reading the documentation I am …

c++ boost boost-asio tr1
How does one include TR1?

Different compilers seem to have different ideas about TR1. G++ only seems to accept includes of the type: #include <…

c++ include c++11 portability tr1
How is the std::tr1::shared_ptr implemented?

I've been thinking about using shared pointers, and I know how to implement one myself--Don't want to do it, so …

c++ shared-ptr tr1
Assigning existing values to smart-ptrs?

I am just learning about smart pointers, and I am having trouble assigning a pre-existing location of a variable to …

c++ std shared-ptr tr1
What are differences between std, tr1 and boost (as namespaces and/or libraries)?

I initially thought they're all the same, but it turned out to be wrong. So can anyone briefly explain the …

c++ c++11 boost tr1
C++: Function wrapper that behaves just like the function itself

How can I write a wrapper that can wrap any function and can be called just like the function itself? …

c++ function wrapper functional-programming tr1
How does weak_ptr work?

I understand how to use weak_ptr and shared_ptr. I understand how shared_ptr works, by counting the number …

c++ boost weak-references tr1 weak-ptr
Why is std::function not equality comparable?

This question also applies to boost::function and std::tr1::function. std::function is not equality comparable: #include <functional&…

c++ function boost c++11 tr1
Hash function for a pair of long long?

I need to map a pair of long long to a double, but I'm not sure what hash function to …

c++ hash tr1 unordered-map hash-function