728x90

다른 글 이외에 잡다하지만 유용해 보이는 것들에 대해 정리...

 

https://en.cppreference.com/w/cpp/utility/source_location

 

std::source_location - cppreference.com

struct source_location; (since C++20) The std::source_location class represents certain information about the source code, such as file names, line numbers, and function names. Previously, functions that desire to obtain this information about the call sit

en.cppreference.com

 

https://en.cppreference.com/w/cpp/utility/functional/bind_front

 

std::bind_front, std::bind_back - cppreference.com

template< class F, class... Args > constexpr /* unspecified */ bind_front( F&& f, Args&&... args ); (1) (since C++20) template< auto ConstFn, class... Args > constexpr /* unspecified */ bind_front( Args&&... args ); (2) (since C++26) template< class F, cla

en.cppreference.com

 

https://en.cppreference.com/w/cpp/types/is_constant_evaluated

 

std::is_constant_evaluated - cppreference.com

constexpr bool is_constant_evaluated() noexcept; (since C++20) Detects whether the function call occurs within a constant-evaluated context. Returns true if the evaluation of the call occurs within the evaluation of an expression or conversion that is mani

en.cppreference.com

 

https://en.cppreference.com/w/cpp/atomic/atomic_ref

 

std::atomic_ref - cppreference.com

template< class T > struct atomic_ref; (1) (since C++20) template< class T > struct atomic_ref ; (2) (since C++20) The std::atomic_ref class template applies atomic operations to the object it references. For the lifetime of the std::atomic_ref object, the

en.cppreference.com

 

https://en.cppreference.com/w/cpp/experimental/atomic_shared_ptr

 

std::experimental::atomic_shared_ptr - cppreference.com

Merged into ISO C++ The functionality described on this page was merged into the mainline ISO C++ standard as of 11/2017; see std::atomic > (since C++20) template< class T > class atomic_shared_ptr; (concurrency TS) The class template atomic_shared_ptr pro

en.cppreference.com

 

https://en.cppreference.com/w/cpp/thread/counting_semaphore

 

std::counting_semaphore, std::binary_semaphore - cppreference.com

template< std::ptrdiff_t LeastMaxValue = /* implementation-defined */ > class counting_semaphore; (1) (since C++20) using binary_semaphore = std::counting_semaphore<1>; (2) (since C++20) 1) A counting_semaphore is a lightweight synchronization primitive th

en.cppreference.com

 

https://en.cppreference.com/w/cpp/thread/latch

 

std::latch - cppreference.com

class latch; (since C++20) The latch class is a downward counter of type std::ptrdiff_t which can be used to synchronize threads. The value of the counter is initialized on creation. Threads may block on the latch until the counter is decremented to zero.

en.cppreference.com

 

https://en.cppreference.com/w/cpp/thread/barrier

 

std::barrier - cppreference.com

template< class CompletionFunction = /* see below */ > class barrier; (since C++20) The class template std::barrier provides a thread-coordination mechanism that blocks a group of threads of known size until all threads in that group have reached the barri

en.cppreference.com

 

 

https://en.cppreference.com/w/cpp/io/basic_osyncstream

 

std::basic_osyncstream - cppreference.com

The class template std::basic_osyncstream is a convenience wrapper for std::basic_syncbuf. It provides a mechanism to synchronize threads writing to the same stream. It can be used with a named variable: { std::osyncstream synced_out(std::cout); // synchro

en.cppreference.com

 

 

728x90

'Basic Programming > C++ 20' 카테고리의 다른 글

C++20 - jthread  (0) 2024.01.21
C++20 - format  (0) 2024.01.20
C++20 - Time Zone  (0) 2024.01.20
C++20 - Calendar  (0) 2024.01.17
C++20 - 비트연산  (0) 2024.01.17

+ Recent posts