tr1
Where can I find reliable information on C++11, std new features and Tr1?
I am trying to make the most of the new standart. However, I am having dificult in find solid information about C++11 like good explanations on the new keywords and syntax.[详细]
2023-04-12 20:56 分类:问答Is there a match_partial in C++11 Regular Expressions?
I read through n1429 with the section The algorithms regex_match and regex_search both support a feature not commonly seen in regular expression libraries: a partial match. When the flag std::regex_[详细]
2023-04-12 03:21 分类:问答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 storing std::function objects. But I fail right at the beginning with this code:[详细]
2023-04-09 04:39 分类:问答How to handle evolving c++ std:: namespace? e.g.: std::tr1::shared_ptr vs. std::shared_ptr vs. boost::shared_ptr vs. boost::tr1::shared_ptr
For the code I am currently working on, we sometimes need to compile on some older systems with older compilers (e.g.- we run sims on an older IBM BlueGene/L, who\'s support contract dictates some qui[详细]
2023-03-29 06:18 分类:问答How to convert string to regex literal
What\'s the best way to escape an arbitrary std::wstring for use inside a regular expression? For example, convert you owe me $ to you owe me \\$?[详细]
2023-03-23 01:52 分类:问答Can tr1::function swallow return values?
The boost::function FAQ item 3 specifically addresses the scenario I am inte开发者_开发问答rested in:[详细]
2023-03-19 09:56 分类:问答enable_if method specialization
template<typename T> struct A { A<T> operator%( const T& x); }; template<typename T>[详细]
2023-03-18 19:43 分类:问答How do I most effectively prevent my normally-distributed random variable from being zero?
I\'m writing a Monte Carlo algorithm, in which at one point I need to divide by a random variable. More precisely: the random variable is used as a step width for a difference quotient, so I actually[详细]
2023-03-14 02:06 分类:问答Custom Allocator in tr1's unordered_map
I have a few problems regarding a custom allocator for an unordered_map. I have a large dataset and I need to hash on a string as key. So I came to know that providing a custom memory allocator would[详细]
2023-03-12 22:36 分类:问答Remove duplicates from two large text files using unordered_map
I am new to a lot of these C++ libraries, so please forgive me if my questions comes across as naive.[详细]
2023-03-12 21:22 分类:问答