MCPcopy Create free account
hub / github.com/SqliteModernCpp/sqlite_modern_cpp / scalar

Function scalar

hdr/sqlite_modern_cpp.h:1000–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998 typename... Values
999 >
1000 inline typename std::enable_if<(sizeof...(Values) < Count), void>::type scalar(
1001 sqlite3_context* db,
1002 int count,
1003 sqlite3_value** vals,
1004 Values&&... values
1005 ) {
1006 typename std::remove_cv<
1007 typename std::remove_reference<
1008 typename utility::function_traits<Function>::template argument<sizeof...(Values)>
1009 >::type
1010 >::type value{};
1011 get_val_from_db(vals[sizeof...(Values)], value);
1012
1013 scalar<Count, Function>(db, count, vals, std::forward<Values>(values)..., std::move(value));
1014 }
1015
1016 template<
1017 std::size_t Count,

Callers

nothing calls this directly

Calls 3

get_val_from_dbFunction · 0.85
store_result_in_dbFunction · 0.85
get_codeMethod · 0.80

Tested by

no test coverage detected