IDS peak genericC++ v1.7.3
Loading...
Searching...
No Matches
peak_buffer_converter.hpp
Go to the documentation of this file.
1
11#pragma once
12
13
15
16
17namespace peak
18{
19
42template <class OutType>
43OutType BufferTo(const std::shared_ptr<peak::core::Buffer>& buffer)
44{
45 (void)buffer;
46 // static_assert that's always false, so we get a compiler error when using a not-implemented specialization
47 static_assert(sizeof(OutType) == 0,
48 "BufferTo<>() not implemented for this type. Implement a specialization for your own type or include one from "
49 "the 'converters' folder.");
50}
51
52} /* namespace peak */
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:32
OutType BufferTo(const std::shared_ptr< peak::core::Buffer > &buffer)
Converts a core::Buffer into a different type.
Definition peak_buffer_converter.hpp:43