32 Concurrency support library [thread]

32.4 Threads [thread.threads]

32.4.3 Class thread [thread.thread.class]

32.4.3.2 Thread attributes [thread.attributes]

32.4.3.2.3 Class thread​::​stack_size_hint [thread.attributes.size]

namespace std { class thread::stack_size_hint { public: constexpr explicit stack_size_hint(size_t s) noexcept; private: size_t size; // exposition only }; }
stack_size_hint can be used to configure a desired size in bytes for platform-specific storage required for a thread.
[Note 1: 
Such storage is typically used for variables with automatic storage duration.
— end note]
The stack size set by the implementation may be adjusted up or down to meet platform-specific requirements.
If size is zero, the thread attribute is ignored.
constexpr explicit stack_size_hint(size_t s) noexcept;
Effects: Initializes size with s.