impl Namespace Reference

impl Namespace Reference#

Rocprofiler SDK Developer API: rocprofiler::sdk::mpl::impl Namespace Reference
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
rocprofiler::sdk::mpl::impl Namespace Reference

Data Structures

struct  is_string_type
 
struct  is_string_type< char * >
 
struct  is_string_type< const char * >
 

Functions

template<typename ContainerT , typename... Args>
auto emplace (ContainerT &_c, int, Args &&... _args) -> decltype(_c.emplace_back(std::forward< Args >(_args)...))
 
template<typename ContainerT , typename... Args>
auto emplace (ContainerT &_c, long, Args &&... _args) -> decltype(_c.emplace(std::forward< Args >(_args)...))
 
template<typename ContainerT , typename ArgT >
auto reserve (ContainerT &_c, int, ArgT _arg) -> decltype(_c.reserve(_arg), bool())
 
template<typename ContainerT , typename ArgT >
auto reserve (ContainerT &, long, ArgT)
 

Function Documentation

◆ emplace() [1/2]

template<typename ContainerT , typename... Args>
auto rocprofiler::sdk::mpl::impl::emplace ( ContainerT &  _c,
int  ,
Args &&...  _args 
) -> decltype(_c.emplace_back(std::forward<Args>(_args)...))
inline

Definition at line 210 of file mpl.hpp.

212{
213 return _c.emplace_back(std::forward<Args>(_args)...);
214}

Referenced by rocprofiler::sdk::mpl::emplace().

+ Here is the caller graph for this function:

◆ emplace() [2/2]

template<typename ContainerT , typename... Args>
auto rocprofiler::sdk::mpl::impl::emplace ( ContainerT &  _c,
long  ,
Args &&...  _args 
) -> decltype(_c.emplace(std::forward<Args>(_args)...))
inline

Definition at line 218 of file mpl.hpp.

219{
220 return _c.emplace(std::forward<Args>(_args)...);
221}

◆ reserve() [1/2]

template<typename ContainerT , typename ArgT >
auto rocprofiler::sdk::mpl::impl::reserve ( ContainerT &  ,
long  ,
ArgT   
)
inline

Definition at line 233 of file mpl.hpp.

234{
235 return false;
236}

◆ reserve() [2/2]

template<typename ContainerT , typename ArgT >
auto rocprofiler::sdk::mpl::impl::reserve ( ContainerT &  _c,
int  ,
ArgT  _arg 
) -> decltype(_c.reserve(_arg), bool())
inline

Definition at line 225 of file mpl.hpp.

226{
227 _c.reserve(_arg);
228 return true;
229}

Referenced by rocprofiler::sdk::mpl::reserve().

+ Here is the caller graph for this function: