MCPcopy Create free account
hub / github.com/LibRapid/librapid / packetExtractor

Function packetExtractor

librapid/include/librapid/array/function.hpp:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 typename std::enable_if_t<
115 typetraits::TypeInfo<T>::type != ::librapid::detail::LibRapidType::Scalar, int> = 0>
116 LIBRAPID_NODISCARD LIBRAPID_ALWAYS_INLINE Packet packetExtractor(const T &obj,
117 size_t index) {
118 static_assert(std::is_same_v<Packet, decltype(obj.packet(index))>,
119 "Packet types do not match");
120 return obj.packet(index);
121 }
122
123 template<
124 typename Packet, typename T,

Callers

nothing calls this directly

Calls 1

packetMethod · 0.45

Tested by

no test coverage detected