Skip to content

Commit 4db6c97

Browse files
committed
Corrected functional documentation after review
1 parent 788ae94 commit 4db6c97

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

dev/tuple_helper/tuple_traits.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace sqlite_orm {
88
namespace internal {
99
/*
1010
* Higher-order trait metafunction that checks whether a tuple contains a type with given trait (possibly projected).
11+
*
12+
* `ProjOp` is a metafunction
1113
*/
1214
template<class Pack,
1315
template<class...>
@@ -17,12 +19,16 @@ namespace sqlite_orm {
1719

1820
/*
1921
* Higher-order trait metafunction that checks whether a tuple contains the specified type (possibly projected).
22+
*
23+
* `ProjOp` is a metafunction
2024
*/
2125
template<class Pack, class Type, template<class...> class ProjOp = polyfill::type_identity_t>
2226
using tuple_has_type = mpl::invoke_t<check_if_has_type<Type>, Pack, mpl::quote_fn<ProjOp>>;
2327

2428
/*
2529
* Higher-order trait metafunction that checks whether a tuple contains the specified class template (possibly projected).
30+
*
31+
* `ProjOp` is a metafunction
2632
*/
2733
template<class Pack,
2834
template<class...>
@@ -38,6 +44,8 @@ namespace sqlite_orm {
3844

3945
/*
4046
* Higher-order metafunction returning the first index constant of the desired class template in a tuple (possibly projected).
47+
*
48+
* `ProjOp` is a metafunction
4149
*/
4250
template<class Pack,
4351
template<class...>
@@ -49,7 +57,7 @@ namespace sqlite_orm {
4957
* Higher-order trait metafunction that counts the types having the specified trait in a tuple (possibly projected).
5058
*
5159
* `Pred` is a predicate metafunction with a nested bool member named `value`
52-
* `Proj` is a metafunction
60+
* `ProjOp` is a metafunction
5361
*/
5462
template<class Pack, template<class...> class Pred, template<class...> class ProjOp = polyfill::type_identity_t>
5563
using count_tuple = mpl::invoke_t<counts_if_has<Pred>, Pack, mpl::quote_fn<ProjOp>>;

include/sqlite_orm/sqlite_orm.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,8 @@ namespace sqlite_orm {
13541354
namespace internal {
13551355
/*
13561356
* Higher-order trait metafunction that checks whether a tuple contains a type with given trait (possibly projected).
1357+
*
1358+
* `ProjOp` is a metafunction
13571359
*/
13581360
template<class Pack,
13591361
template<class...>
@@ -1363,12 +1365,16 @@ namespace sqlite_orm {
13631365

13641366
/*
13651367
* Higher-order trait metafunction that checks whether a tuple contains the specified type (possibly projected).
1368+
*
1369+
* `ProjOp` is a metafunction
13661370
*/
13671371
template<class Pack, class Type, template<class...> class ProjOp = polyfill::type_identity_t>
13681372
using tuple_has_type = mpl::invoke_t<check_if_has_type<Type>, Pack, mpl::quote_fn<ProjOp>>;
13691373

13701374
/*
13711375
* Higher-order trait metafunction that checks whether a tuple contains the specified class template (possibly projected).
1376+
*
1377+
* `ProjOp` is a metafunction
13721378
*/
13731379
template<class Pack,
13741380
template<class...>
@@ -1384,6 +1390,8 @@ namespace sqlite_orm {
13841390

13851391
/*
13861392
* Higher-order metafunction returning the first index constant of the desired class template in a tuple (possibly projected).
1393+
*
1394+
* `ProjOp` is a metafunction
13871395
*/
13881396
template<class Pack,
13891397
template<class...>
@@ -1395,7 +1403,7 @@ namespace sqlite_orm {
13951403
* Higher-order trait metafunction that counts the types having the specified trait in a tuple (possibly projected).
13961404
*
13971405
* `Pred` is a predicate metafunction with a nested bool member named `value`
1398-
* `Proj` is a metafunction
1406+
* `ProjOp` is a metafunction
13991407
*/
14001408
template<class Pack, template<class...> class Pred, template<class...> class ProjOp = polyfill::type_identity_t>
14011409
using count_tuple = mpl::invoke_t<counts_if_has<Pred>, Pack, mpl::quote_fn<ProjOp>>;

0 commit comments

Comments
 (0)