MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ remove_reference_region()

void MayaFlux::Kakshya::remove_reference_region ( std::vector< std::pair< std::string, Region > > &  refs,
const std::string &  name 
)

Remove a named reference region from a reference list.

Parameters
refsReference list (name, Region) pairs.
nameName of the reference to remove.

Definition at line 145 of file RegionUtils.cpp.

146{
147 auto to_remove = std::ranges::remove_if(refs,
148 [&name](const auto& pair) { return pair.first == name; });
149 refs.erase(to_remove.begin(), to_remove.end());
150}