@@ -1037,7 +1037,7 @@ concept has_index = (is_indexing_column<C> || ...);
10371037template <typename T, typename ... Cs>
10381038consteval auto inBindings (framework::pack<Cs...>)
10391039{
1040- return framework::has_type_at_v<T>(framework::pack<decltype ([]<typename C>(){
1040+ return framework::has_type_at_v<T>(framework::pack<decltype ([]<typename C>() {
10411041 if constexpr (is_index_column<C> && !is_self_index_column<C>) {
10421042 return std::declval<typename C::binding_t >();
10431043 } else {
@@ -1149,37 +1149,39 @@ struct TableIterator : IP, C... {
11491149
11501150 std::vector<o2::soa::Binding> getIndexBindings () const
11511151 {
1152- return {[this ]<soa::is_column CL>(){
1152+ return { [this ]<soa::is_column CL>() {
11531153 if constexpr (soa::is_index_column<CL> && !soa::is_self_index_column<CL>) {
11541154 return o2::soa::Binding{CL::getCurrentRaw ()};
11551155 } else {
11561156 return o2::soa::Binding{};
11571157 }
1158- }.template operator ()<C>()...};
1158+ }.template operator ()<C>()... };
11591159 }
11601160
11611161 template <typename ... TA>
11621162 void bindExternalIndices (TA*... current)
11631163 {
11641164 ([this ]<typename ... Cs, typename TT>(framework::pack<Cs...>, TT* t) {
1165- ([this ]<soa::is_column CL, typename TI>(TI* c){
1165+ ([this ]<soa::is_column CL, typename TI>(TI* c) {
11661166 if constexpr (soa::is_index_column<CL> && !soa::is_self_index_column<CL>) {
11671167 CL::setCurrent (c);
11681168 }
1169- }.template operator ()<Cs, TT>(t), ...);
1169+ }.template operator ()<Cs, TT>(t),
1170+ ...);
11701171 }(framework::pack<C...>{}, current),
11711172 ...);
11721173 }
11731174
11741175 void bindExternalIndicesRaw (std::vector<o2::soa::Binding>&& bindings)
11751176 {
1176- [&bindings, this ]<size_t ... Is>(std::index_sequence<Is...>){
1177- ([&bindings, this ](){
1177+ [&bindings, this ]<size_t ... Is>(std::index_sequence<Is...>) {
1178+ ([&bindings, this ]() {
11781179 using column = typename framework::pack_element_t <Is, framework::pack<C...>>;
11791180 if constexpr (soa::is_index_column<column> && !soa::is_self_index_column<column>) {
11801181 column::setCurrentRaw (bindings[Is]);
11811182 }
1182- }(), ...);
1183+ }(),
1184+ ...);
11831185 }(std::make_index_sequence<sizeof ...(C)>());
11841186 }
11851187
@@ -1188,11 +1190,12 @@ struct TableIterator : IP, C... {
11881190 {
11891191 o2::soa::Binding b;
11901192 b.bind (table);
1191- ([this ]<soa::is_column CL>(o2::soa::Binding const & bb){
1192- if constexpr (soa::is_self_index_column<CL>) {
1193+ ([this ]<soa::is_column CL>(o2::soa::Binding const & bb) {
1194+ if constexpr (soa::is_self_index_column<CL>) {
11931195 CL::setCurrentRaw (bb);
11941196 }
1195- }.template operator ()<C>(b), ...);
1197+ }.template operator ()<C>(b),
1198+ ...);
11961199 }
11971200
11981201 private:
@@ -1208,13 +1211,14 @@ struct TableIterator : IP, C... {
12081211 void bind ()
12091212 {
12101213 using namespace o2 ::soa;
1211- ([this ]<soa::is_column CL>(){
1214+ ([this ]<soa::is_column CL>() {
12121215 if constexpr (soa::is_persistent_column<CL>) {
12131216 CL::mColumnIterator .mCurrentPos = &this ->mRowIndex ;
12141217 } else if constexpr (soa::is_dynamic_column<CL>) {
12151218 bindDynamicColumn<CL>(typename CL::bindings_t {});
12161219 }
1217- }.template operator ()<C>(), ...);
1220+ }.template operator ()<C>(),
1221+ ...);
12181222
12191223 if constexpr (has_index<C...>) {
12201224 this ->setIndices (this ->getIndices ());
@@ -1230,7 +1234,7 @@ struct TableIterator : IP, C... {
12301234 template <typename DC, typename ... B>
12311235 auto bindDynamicColumn (framework::pack<B...>)
12321236 {
1233- DC::boundIterators = std::make_tuple ([this ]<typename Bi>(){
1237+ DC::boundIterators = std::make_tuple ([this ]<typename Bi>() {
12341238 if constexpr (can_bind<self_t , Bi>) {
12351239 return &(static_cast <B*>(this )->mColumnIterator );
12361240 } else {
@@ -1369,25 +1373,27 @@ static constexpr std::string getLabelFromTypeForKey(std::string const& key)
13691373template <typename B, typename ... C>
13701374consteval static bool hasIndexTo (framework::pack<C...>&&)
13711375{
1372- return ([]<soa::is_column CC, typename BB>(){
1376+ return ([]<soa::is_column CC, typename BB>() {
13731377 if constexpr (soa::is_index_column<CC> && !soa::is_self_index_column<CC>) {
13741378 return o2::soa::is_binding_compatible_v<BB, typename CC::binding_t >();
13751379 } else {
13761380 return false ;
13771381 }
1378- }.template operator ()<C, B>() || ...);
1382+ }.template operator ()<C, B>() ||
1383+ ...);
13791384}
13801385
13811386template <typename B, typename ... C>
13821387consteval static bool hasSortedIndexTo (framework::pack<C...>&&)
13831388{
1384- return ([]<soa::is_column CC, typename BB>(){
1389+ return ([]<soa::is_column CC, typename BB>() {
13851390 if constexpr (soa::is_index_column<CC> && !soa::is_self_index_column<CC>) {
13861391 return CC::sorted && o2::soa::is_binding_compatible_v<B, typename CC::binding_t >();
13871392 } else {
13881393 return false ;
13891394 }
1390- }.template operator ()<C, B>() || ...);
1395+ }.template operator ()<C, B>() ||
1396+ ...);
13911397}
13921398
13931399template <typename B, typename Z>
@@ -2059,11 +2065,12 @@ class Table
20592065 template <typename ... Cs>
20602066 void doBindInternalIndicesExplicit (framework::pack<Cs...>, o2::soa::Binding binding)
20612067 {
2062- ([this ]<soa::is_column CL>(o2::soa::Binding b){
2068+ ([this ]<soa::is_column CL>(o2::soa::Binding b) {
20632069 if constexpr (soa::is_self_index_column<CL>) {
20642070 static_cast <CL>(mBegin ).setCurrentRaw (b);
20652071 }
2066- }.template operator ()<Cs>(binding), ...);
2072+ }.template operator ()<Cs>(binding),
2073+ ...);
20672074 }
20682075
20692076 void bindExternalIndicesRaw (std::vector<o2::soa::Binding>&& ptrs)
0 commit comments