MCPcopy Create free account
hub / github.com/Kitware/VTK / MakeHolder

Function MakeHolder

IO/Core/vtkMemoryResourceStream.h:65–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 // Small utility function to easily create a DataHolder with type deduction
64 template <typename T>
65 static std::unique_ptr<DataHolder<T>> MakeHolder(T&& value)
66 {
67 return std::unique_ptr<DataHolder<T>>{ new DataHolder<T>{ std::forward<T>(value) } };
68 }
69
70public:
71 vtkTypeMacro(vtkMemoryResourceStream, vtkResourceStream);

Callers 2

SetBufferMethod · 0.85
SetBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected