MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / ReplaceDefaultsImpl

Function ReplaceDefaultsImpl

tests/common/ValueList.hpp:153–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152template<int IDX, class T, class U>
153void ReplaceDefaultsImpl(U &out, const T &in)
154{
155 using SRC = typename std::tuple_element<IDX, T>::type;
156 using DST = typename std::tuple_element<IDX, U>::type;
157
158 if constexpr (!std::is_same_v<SRC, Default>)
159 {
160 std::get<IDX>(out) = static_cast<DST>(std::get<IDX>(in));
161 }
162}
163
164template<class T, class U, size_t... IDX>
165void ReplaceDefaultsImpl(U &out, const T &in, std::index_sequence<IDX...>)

Callers 1

ReplaceDefaultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected