Skip to content

Commit

Permalink
add cflow constants
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jun 19, 2024
1 parent fd7425b commit 80df7a6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/utl/cflow.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

namespace utl {

// Used like this:
// for_each(..., []() {
// if (x) return utl::kContinue;
// else return utl::kBreak;
// });
enum class cflow { kContinue, kBreak };

} // namespace utl

0 comments on commit 80df7a6

Please sign in to comment.