Skip to content

Commit

Permalink
:octocat: Applied clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
pratzl authored and github-actions[bot] committed Jan 23, 2024
1 parent d33c7c1 commit a2ba221
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/graph/detail/graph_cpo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ namespace _Partition_count {
template <class _G>
[[nodiscard]] static consteval _Choice_t<_St_ref> _Choose_ref() noexcept {
static_assert(is_lvalue_reference_v<_G>);
if constexpr (_Has_ref_member<_G>) {
if constexpr (_Has_ref_member<_G>) {
return {_St_ref::_Member, noexcept(_Fake_copy_init(declval<_G>().partition_count()))};
} else if constexpr (_Has_ref_ADL<_G>) {
return {_St_ref::_Non_member, noexcept(_Fake_copy_init(partition_count(
Expand Down
16 changes: 8 additions & 8 deletions include/graph/views/depth_first_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ namespace views {
# endif // ^^^ workaround ^^^

template <class _G, class _Alloc>
concept _Has_ref_ADL = _Has_class_or_enum_type<_G> //
concept _Has_ref_ADL = _Has_class_or_enum_type<_G> //
&& requires(_G&& __g, const vertex_id_t<_G>& uid, _Alloc alloc) {
{ _Fake_copy_init(vertices_depth_first_search(__g, uid, alloc)) }; // intentional ADL
};
Expand Down Expand Up @@ -738,7 +738,7 @@ namespace views {
constexpr _St_ref _Strat_ref = _Choice_ref<_G&, _Alloc>._Strategy;

if constexpr (_Strat_ref == _St_ref::_Non_member) {
return vertices_depth_first_search(__g, seed, alloc); // intentional ADL
return vertices_depth_first_search(__g, seed, alloc); // intentional ADL
} else if constexpr (_Strat_ref == _St_ref::_Auto_eval) {
return vertices_depth_first_search_view<_G, void>(__g, seed, alloc); // default impl
} else {
Expand Down Expand Up @@ -771,7 +771,7 @@ namespace views {
constexpr _St_ref_vvf _Strat_ref_vvf = _Choice_ref_vvf<_G&, _VVF, _Alloc>._Strategy;

if constexpr (_Strat_ref_vvf == _St_ref_vvf::_Non_member) {
return vertices_depth_first_search(__g, seed, vvf, alloc); // intentional ADL
return vertices_depth_first_search(__g, seed, vvf, alloc); // intentional ADL
} else if constexpr (_Strat_ref_vvf == _St_ref_vvf::_Auto_eval) {
return vertices_depth_first_search_view<_G, _VVF>(__g, seed, vvf, alloc); // default impl
} else {
Expand Down Expand Up @@ -800,7 +800,7 @@ namespace views {
# endif // ^^^ workaround ^^^

template <class _G, class _Alloc>
concept _Has_ref_ADL = _Has_class_or_enum_type<_G> //
concept _Has_ref_ADL = _Has_class_or_enum_type<_G> //
&& requires(_G&& __g, const vertex_id_t<_G>& uid, _Alloc alloc) {
{ _Fake_copy_init(edges_depth_first_search(__g, uid, alloc)) }; // intentional ADL
};
Expand Down Expand Up @@ -889,7 +889,7 @@ namespace views {
constexpr _St_ref _Strat_ref = _Choice_ref<_G&, _Alloc>._Strategy;

if constexpr (_Strat_ref == _St_ref::_Non_member) {
return edges_depth_first_search(__g, seed, alloc); // intentional ADL
return edges_depth_first_search(__g, seed, alloc); // intentional ADL
} else if constexpr (_Strat_ref == _St_ref::_Auto_eval) {
return edges_depth_first_search_view<_G, void, false>(__g, seed, alloc); // default impl
} else {
Expand Down Expand Up @@ -922,7 +922,7 @@ namespace views {
constexpr _St_ref_evf _Strat_ref_evf = _Choice_ref_evf<_G&, _EVF, _Alloc>._Strategy;

if constexpr (_Strat_ref_evf == _St_ref_evf::_Non_member) {
return edges_depth_first_search(__g, seed, alloc); // intentional ADL
return edges_depth_first_search(__g, seed, alloc); // intentional ADL
} else if constexpr (_Strat_ref_evf == _St_ref_evf::_Auto_eval) {
return edges_depth_first_search_view<_G, _EVF, false>(__g, seed, evf, alloc); // default impl
} else {
Expand Down Expand Up @@ -1042,7 +1042,7 @@ namespace views {
constexpr _St_ref _Strat_ref = _Choice_ref<_G&, _Alloc>._Strategy;

if constexpr (_Strat_ref == _St_ref::_Non_member) {
return sourced_edges_depth_first_search(__g, seed, alloc); // intentional ADL
return sourced_edges_depth_first_search(__g, seed, alloc); // intentional ADL
} else if constexpr (_Strat_ref == _St_ref::_Auto_eval) {
return edges_depth_first_search_view<_G, void, true>(__g, seed, alloc); // default impl
} else {
Expand Down Expand Up @@ -1075,7 +1075,7 @@ namespace views {
constexpr _St_ref_evf _Strat_ref_evf = _Choice_ref_evf<_G&, _EVF, _Alloc>._Strategy;

if constexpr (_Strat_ref_evf == _St_ref_evf::_Non_member) {
return sourced_edges_depth_first_search(__g, seed, alloc); // intentional ADL
return sourced_edges_depth_first_search(__g, seed, alloc); // intentional ADL
} else if constexpr (_Strat_ref_evf == _St_ref_evf::_Auto_eval) {
return edges_depth_first_search_view<_G, _EVF, true>(__g, seed, evf, alloc); // default impl
} else {
Expand Down

0 comments on commit a2ba221

Please sign in to comment.