Blaze
3.9
blaze
util
algorithms
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
39
namespace
blaze {
40
41
//=================================================================================================
42
//
43
// CONSTRUCT_AT ALGORITHM
44
//
45
//=================================================================================================
46
47
//*************************************************************************************************
57
template
<
typename
T,
typename
... Args >
58
void
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
blaze::construct_at
void construct_at(T *p, Args &&... args)
Constructs the object at the given address.
Definition:
ConstructAt.h:58
Generated by
1.9.3