HALDLS
coordinate_to_container.h
Go to the documentation of this file.
1 #pragma once
2 #include <type_traits>
3 
4 namespace haldls::vx::detail {
5 
13 template <typename CoordinateT, typename ContainerT>
14 ContainerT coordinate_to_container(CoordinateT const&)
15 {
16  static_assert(std::is_same_v<typename ContainerT::coordinate_type, CoordinateT>);
17  return ContainerT();
18 }
19 
20 } // namespace haldls::vx::detail
ContainerT coordinate_to_container(CoordinateT const &)
Construct a container instance from a given coordinate.