tr1
C++ TR1 regex - multiline option
I thought that $ indicates the end of string. However, the following piece of code gives \"testbbbccc\" as a result, which is quite astonishing to me... This means that $ actually matches end of line,[详细]
2023-01-29 16:44 分类:问答error while using regex_replace function from <tr1/regex>
#include <string> #include <tr1/regex> #include \"TextProcessing.h\" const std::string URL_PATTERN(\"((http://)[-a-zA-Z0-9@:%_\\\\+.~#?&//=]+)\");[详细]
2023-01-21 10:16 分类:问答Differences between tr1::shared_ptr and boost::shared_ptr?
Are there any difference between tr1::shared_ptr and boost::shared_ptr? If so, what开发者_运维技巧?No, the documentation of boost shared_ptr says:[详细]
2023-01-18 01:01 分类:问答Call c++ member function with each element in a list?
I have a list of Thing and a Controller that I want to notify() with each of the things. The code below works:[详细]
2023-01-15 20:26 分类:问答Using C++ Technical Report 1 (TR1) in VC++ 2010 [closed]
开发者_高级运维 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.[详细]
2023-01-15 06:54 分类:问答Virtual member functions and std::tr1::function: How does this work?
Here is a sample piece of code. Note that B is a subclass of A and both provide a unique p开发者_如何学JAVArint routine. Also notice in main that both bind calls are to &A::print, though in the la[详细]
2023-01-15 06:30 分类:问答Is std::array<T, S> guaranteed to be POD if T is POD?
I\'m currently writing a C++ memory editing library and for the read/write APIs I use type traits (std::is_pod, std::is_same) and boost::enable_if to provide 3 overloads:[详细]
2023-01-15 04:22 分类:问答Why is std::function not equality comparable?
This question also applies to boost::function and std::tr1::function. std::function is not equality comparable:[详细]
2023-01-15 02:31 分类:问答Is there a native/reliable alternative for boost::shared_ptr in VC++?
My company doesn\'开发者_如何学Ct allow the use of boost (for many stupid reasons, but that\'s off-topic).[详细]
2023-01-13 09:12 分类:问答tr1::regex regex_search problem
I\'m using tr1::regex to try to extract some matches from a string. An example string could be asdf werq \"one two three\" asdf[详细]
2023-01-13 06:54 分类:问答