Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 20, 2023
1 parent 78a59d6 commit b74865f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/slang/util/Iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,17 +349,17 @@ class iterator_facade {
/// requires <code>Derived::distance_to()</code>
template<detail::has_distance_to<self_type> T>
[[nodiscard]] friend constexpr decltype(auto) operator-(
const T & left,
const self_type & right) noexcept(detail::has_nothrow_distance_to<T, self_type>) {
const T& left,
const self_type& right) noexcept(detail::has_nothrow_distance_to<T, self_type>) {
return right.distance_to(left);
}

/// @brief Distance between an iterator and a sentinel,
/// requires <code>Derived::distance_to()</code>
template<detail::has_distance_to<self_type> Sentinel>
[[nodiscard]] friend constexpr decltype(auto) operator-(
const self_type & left,
const Sentinel & right) noexcept(detail::has_nothrow_distance_to<Sentinel, self_type>) {
const self_type& left,
const Sentinel& right) noexcept(detail::has_nothrow_distance_to<Sentinel, self_type>) {
return -(right - left);
}

Expand Down

0 comments on commit b74865f

Please sign in to comment.