Blaze 3.9
ConstructAt.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_ALGORITHMS_CONSTRUCTAT_H_
36#define _BLAZE_UTIL_ALGORITHMS_CONSTRUCTAT_H_
37
38
39namespace blaze {
40
41//=================================================================================================
42//
43// CONSTRUCT_AT ALGORITHM
44//
45//=================================================================================================
46
47//*************************************************************************************************
57template< typename T, typename... Args >
58void construct_at( T* p, Args&&... args )
59{
60 ::new ( static_cast<void*>( p ) ) T( std::forward<Args>( args )... );
61}
62//*************************************************************************************************
63
64} // namespace blaze
65
66#endif
void construct_at(T *p, Args &&... args)
Constructs the object at the given address.
Definition: ConstructAt.h:58