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
}
;
}
1
#
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
]
2
#
The stack size set by the implementation may be adjusted up or down to meet platform-specific requirements
.
3
#
If
size
is zero, the thread attribute is ignored
.
🔗
constexpr
explicit
stack_size_hint
(
size_t s
)
noexcept
;
4
#
Effects
: Initializes
size
with
s
.