Top "Standard-library" questions

The standard library contains core utilities provided by all implementations of the language.

Why isn't `int pow(int base, int exponent)` in the standard C++ libraries?

I feel like I must just be unable to find it. Is there any reason that the C++ pow function …

c++ math integer standard-library pow
What is GLIBC? What is it used for?

I was searching for the source code of the C standard libraries. What I mean with it is, for example, …

c gnu glibc standard-library
What is std::decay and when it should be used?

What are the reasons for the existence of std::decay? In what situations is std::decay useful?

c++ c++11 standard-library
Is there a module for balanced binary tree in Python's standard library?

Is there a module for an AVL tree or a red–black tree or some other type of a balanced …

python tree standard-library
When is #include <new> library required in C++?

According to this reference for operator new: Global dynamic storage operator functions are special in the standard library: All three …

c++ new-operator include standard-library
Changing Java PriorityQueue to a Max PQ

The Priority Queue implementation in the Java standard library appears to be a min Priority Queue which I found somewhat …

java priority-queue standard-library
Difference between C standard library and C POSIX library

I'm a little confused by "C standard lib" and "C POSIX lib", because I found that, many header files defined …

c posix standard-library
What is the opposite of python's ord() function?

I found out about Python's ord() function which returns corresponding Unicode codepoint value. But what is the opposite function, i.…

python standard-library
Are int8_t and uint8_t intended to be char types?

Given this C++11 program, should I expect to see a number or a letter? Or not make expectations? #include <…

c++ c++11 iostream language-lawyer standard-library
C++11 Thread waiting behaviour: std::this_thread::yield() vs. std::this_thread::sleep_for( std::chrono::milliseconds(1) )

I was told when writing Microsoft specific C++ code that writing Sleep(1) is much better than Sleep(0) for spinlocking, due …

c++ multithreading c++11 standard-library