MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / freeRemainingArgs

Function freeRemainingArgs

tests/unit/operations.cpp:523–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521
522template <NumQubitsFlag Targs, ArgsFlag Args>
523void freeRemainingArgs(auto args) {
524
525 if constexpr (Targs == any && Args == compmatr)
526 destroyCompMatr(std::get<0>(args));
527
528 if constexpr (Targs == any && Args == diagmatr)
529 destroyDiagMatr(std::get<0>(args));
530
531 if constexpr (Targs == any && Args == diagpower)
532 destroyDiagMatr(std::get<0>(args));
533}
534
535
536/*

Callers

nothing calls this directly

Calls 2

destroyCompMatrFunction · 0.85
destroyDiagMatrFunction · 0.85

Tested by

no test coverage detected