@@ -17,7 +17,7 @@ namespace sqlite_orm {
17
17
18
18
struct table_name_collector {
19
19
using table_name_set = std::set<std::pair<std::string, std::string>>;
20
- using find_table_name_t = std::function<std::string(const std::type_index &)>;
20
+ using find_table_name_t = std::function<std::string(const std::type_index&)>;
21
21
22
22
find_table_name_t find_table_name;
23
23
mutable table_name_set table_names;
@@ -27,7 +27,7 @@ namespace sqlite_orm {
27
27
table_name_collector (find_table_name_t find_table_name) : find_table_name{move (find_table_name)} {}
28
28
29
29
template <class T >
30
- table_name_set operator ()(const T &) const {
30
+ table_name_set operator ()(const T&) const {
31
31
return {};
32
32
}
33
33
@@ -37,30 +37,30 @@ namespace sqlite_orm {
37
37
}
38
38
39
39
template <class T , class F >
40
- void operator ()(const column_pointer<T, F> &) const {
40
+ void operator ()(const column_pointer<T, F>&) const {
41
41
table_names.emplace (this ->find_table_name (typeid (T)), " " );
42
42
}
43
43
44
44
template <class T , class C >
45
- void operator ()(const alias_column_t <T, C> & a) const {
45
+ void operator ()(const alias_column_t <T, C>& a) const {
46
46
(*this )(a.column , alias_extractor<T>::get ());
47
47
}
48
48
49
49
template <class T >
50
- void operator ()(const count_asterisk_t <T> &) const {
50
+ void operator ()(const count_asterisk_t <T>&) const {
51
51
auto tableName = this ->find_table_name (typeid (T));
52
52
if (!tableName.empty ()) {
53
53
table_names.emplace (move (tableName), " " );
54
54
}
55
55
}
56
56
57
57
template <class T , satisfies_not<std::is_base_of, alias_tag, T> = true >
58
- void operator ()(const asterisk_t <T> &) const {
58
+ void operator ()(const asterisk_t <T>&) const {
59
59
table_names.emplace (this ->find_table_name (typeid (T)), " " );
60
60
}
61
61
62
62
template <class T , satisfies<std::is_base_of, alias_tag, T> = true >
63
- void operator ()(const asterisk_t <T> &) const {
63
+ void operator ()(const asterisk_t <T>&) const {
64
64
// note: not all alias classes have a nested A::type
65
65
static_assert (polyfill::is_detected_v<type_t , T>,
66
66
" alias<O> must have a nested alias<O>::type typename" );
@@ -69,22 +69,22 @@ namespace sqlite_orm {
69
69
}
70
70
71
71
template <class T >
72
- void operator ()(const object_t <T> &) const {
72
+ void operator ()(const object_t <T>&) const {
73
73
table_names.emplace (this ->find_table_name (typeid (T)), " " );
74
74
}
75
75
76
76
template <class T >
77
- void operator ()(const table_rowid_t <T> &) const {
77
+ void operator ()(const table_rowid_t <T>&) const {
78
78
table_names.emplace (this ->find_table_name (typeid (T)), " " );
79
79
}
80
80
81
81
template <class T >
82
- void operator ()(const table_oid_t <T> &) const {
82
+ void operator ()(const table_oid_t <T>&) const {
83
83
table_names.emplace (this ->find_table_name (typeid (T)), " " );
84
84
}
85
85
86
86
template <class T >
87
- void operator ()(const table__rowid_t <T> &) const {
87
+ void operator ()(const table__rowid_t <T>&) const {
88
88
table_names.emplace (this ->find_table_name (typeid (T)), " " );
89
89
}
90
90
};
0 commit comments