tr1
How can I force MinGW to use tr1 namespace?
I\'m using MinGW 4.5.2 and I\'d like to use unordered_map from the tr1 namespace, not the one from std namespace that is enabled by passing -std=c++0x. I\'m sure this can be done since there are two u[详细]
2023-03-10 18:26 分类:问答std::regex equivalent of '/g' global modifier
In Perl, I can do this: $text = \'1747239\'; @matches = ($text =~ m/(\\d)/g); # @matches now contains (\'1\', \'7\', \'4\', \'7\', \'2\', \'3\', \'9\')[详细]
2023-03-08 07:29 分类:问答TR1 regex_replace with wstring in VS2010?
#include <iostream> #include <string> #include <regex> #include <ios> #include <locale>[详细]
2023-03-07 05:59 分类:问答Any hit for dereferencing std::tr1:shared_ptr vs. dereferencing a naked pointer?
I realize that there is a (Sometimes significant) performance hit for creating, assigning, copying, and destroying a std::tr1::shared_ptr or boost::shared_ptr (due to the reference counting mechanisms[详细]
2023-03-07 01:09 分类:问答Comparing std::function<>
Is it possible to somehow compare two std::tr1::function<> objects? What if I have a collection of function<void(in开发者_如何学编程t,float)> objects and want to add and remove event handl[详细]
2023-03-02 02:09 分类:问答How does weak_ptr work?
I understand how to use weak_p开发者_JAVA百科tr and shared_ptr. I understand how shared_ptr works, by counting the number of references in its object. How does weak_ptr work? I tried reading through t[详细]
2023-02-26 06:45 分类:问答null shared_ptr can access to member functions
I can access member functions of a null shared_ptr object : #include <memory> #include <iostream>[详细]
2023-02-22 05:37 分类:问答Defining a hash function in TR1 unordered_map inside a struct
According to this, it is possible to define an equality function in a TR1 unordered_map like this: #incl开发者_JAVA技巧ude <tr1/unordered_map>[详细]
2023-02-20 07:48 分类:问答C++ library comparison: Boost and Tr1
Which is more robust? Coz I read Linus Torvalds \'s article about how 开发者_StackOverflowbad is boost. Is that tr1 is better than boost?TR1 is a set of libraries that were proposed additions to the C[详细]
2023-02-16 20:54 分类:问答Why Visual Studio cannot find 'tr1/unordered_map?
I want to use google-ctemplate in a project. But if I include the basic file, I get the following error (with Visual Studio C++ 2005):[详细]
2023-02-16 18:31 分类:问答