c++-standard-library
Why was std::pow(double, int) removed from C++11?
While looking into Efficient way to compute p^q (exponentiation), where q is an integer and reviewing the C++98 and C++11 standards I noticed that apparently the std::pow(double, int) overload was rem[详细]
2023-02-23 13:25 分类:问答Why does the standard C++ library use all lower case?
Just curious why the C++ standard 开发者_JAVA技巧library uses all lower case and underscores instead of camelCase or PascalCase naming convention.[详细]
2023-02-19 14:45 分类:问答Initializing a std::vector with default constructor
I have a class field which is a std::vector. I know how ma开发者_开发知识库ny elements I want this vector to contain: N. How do I initialize the vector with N elements?std::vector has a constructor de[详细]
2023-02-16 10:17 分类:问答What's the difference between "STL" and "C++ Standard Library"?
Someone brought this article to my attention that claims (I\'m paraphrasing) the STL term is misused to refer to the entire C++ Standard Library instead of the parts that were taken from SGI STL.[详细]
2023-02-14 20:30 分类:问答C / C++ equivalents to the Python Standard Library
I depend heavily on Python\'s standard library, both for useful data structures and manipulators (e.g., collections and itertools) and for utilities (e.g., optparse, json, and logging), to skip the bo[详细]
2023-01-31 04:36 分类:问答c++ toupper - standard function? [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: Convert a String In C++ 开发者_如何学CTo Upper Case[详细]
2023-01-25 18:48 分类:问答What does string::npos mean in this code?
What does the phrase std::string::npos mean in the following snippet of code? found 开发者_JS百科= str.find(str2);[详细]
2023-01-18 17:04 分类:问答Does std::map<key, data> in C++ support native data types like Structures?
How do I map a key to a native data type like structure? I wrote this snipped but I couldn\'t compile it. Do you have any ideas on how to fix it?[详细]
2023-01-18 16:10 分类:问答Qt: Qt classes vs. standard C++
A large amount of functionality is duplicated between standard c++ and Qt. At some point it seems logical but many times it looks foolish. Like I feel like doing a new programming开发者_Python百科 lan[详细]
2023-01-12 12:35 分类:问答Deleting elements from std::set while iterating
I need to go through a set and remove elements that meet a predefined criteria. This is the test code I wrote:[详细]
2022-12-31 16:16 分类:问答