Skip to content

Commit

Permalink
fix(Mappings): Added clear function.
Browse files Browse the repository at this point in the history
  • Loading branch information
MelchiorSchuh committed Nov 13, 2023
1 parent c3ed3dc commit 060a436
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/geode/basic/mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ namespace geode
out2in_.reserve( capacity );
}

void clear()
{
in2out_.clear();
out2in_.clear();
}

bool has_mapping_input( const T1& value ) const
{
return in2out_.contains( value );
Expand Down

0 comments on commit 060a436

Please sign in to comment.