Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
David Dight committed Jul 16, 2024
1 parent dfbafc8 commit 4fa6521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ You can also use `std::bind` to bind the this pointer and any parameter placehol
If you wish to pass a `reference` parameter, you must wrap it in `std::ref`.
If you wish to provide a `constexpr` array, you will need to use a simple function prototype, since `std::function` is not constexpr (see unit tests for examples).
> [!TIP]
> [!IMPORTANT]
> Your `std::array` of `std::tuple` should be sorted by enum.
> The `dispatch` method performs a binary search on the array. Complexity for a sorted array is at most $2log_2(N)+O(1)$ comparisons.
> If the array is _not_ sorted, complexity is linear.
Expand Down

0 comments on commit 4fa6521

Please sign in to comment.