, . , . [thread.threads] , #include. , , , ., , [bitset].
, thread TDM GCC 4.9.2 , iosfwd exception.
GCC 5, GCC 7, GCC , algorithm numeric.
#include <algorithm>
#include <vector>
int main()
{
std::vector<int> v = {1,2,3,4};
int sum = std::accumulate(std::begin(v), std::end(v), int{0});
}
, .