Move import std to examples src begin. (for clangd)

This commit is contained in:
sha512sum 2024-11-30 10:35:09 +00:00
parent e7bc40ad39
commit f04bc7e7fb
13 changed files with 14 additions and 12 deletions

View file

@ -1,6 +1,6 @@
#include <utempl/utempl.hpp>
#include <utempl/macro.hpp>
import std; import std;
#include <utempl/macro.hpp>
#include <utempl/utempl.hpp>
template <typename T> template <typename T>
struct AttributeData { struct AttributeData {

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
auto main() -> int { auto main() -> int {
constexpr auto f = utempl::Curry([](auto... args) { constexpr auto f = utempl::Curry([](auto... args) {

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
struct SomeInterfaceImpl { struct SomeInterfaceImpl {
int a; int a;

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
auto main() -> int { auto main() -> int {
constexpr auto value = utempl::LeftFold( constexpr auto value = utempl::LeftFold(

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
auto main() -> int { auto main() -> int {
constexpr auto arr = utempl::TupleMaker<std::array<void*, 0>>::Make(); constexpr auto arr = utempl::TupleMaker<std::array<void*, 0>>::Make();

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
auto main() -> int { auto main() -> int {
constexpr std::array types = {utempl::kTypeId<int>, utempl::kTypeId<void>}; constexpr std::array types = {utempl::kTypeId<int>, utempl::kTypeId<void>};

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
auto main() -> int { auto main() -> int {
utempl::Overloaded([](auto&& arg) {}, utempl::Overloaded([](auto&& arg) {},

View file

@ -1,3 +1,4 @@
import std;
#include <utempl/utempl.hpp> #include <utempl/utempl.hpp>
struct Container { struct Container {

View file

@ -1,3 +1,4 @@
import std;
#include <utempl/utempl.hpp> #include <utempl/utempl.hpp>
using namespace utempl; // NOLINT using namespace utempl; // NOLINT

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
auto main() -> int { auto main() -> int {
auto tuple = Reverse(utempl::Tuple{4, 3, 2, 1}); auto tuple = Reverse(utempl::Tuple{4, 3, 2, 1});

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
auto main() -> int { auto main() -> int {
static_assert(utempl::Switch<int>(utempl::Tuple{2, 1, 0}, utempl::Tuple{0, 1, 2}, 0, [](int value) { static_assert(utempl::Switch<int>(utempl::Tuple{2, 1, 0}, utempl::Tuple{0, 1, 2}, 0, [](int value) {

View file

@ -1,5 +1,5 @@
#include <utempl/utempl.hpp>
import std; import std;
#include <utempl/utempl.hpp>
auto main() -> int { auto main() -> int {
std::size_t i = 0; std::size_t i = 0;

View file

@ -1,6 +1,6 @@
import std;
#include <cassert> #include <cassert>
#include <utempl/utempl.hpp> #include <utempl/utempl.hpp>
import std;
auto main() -> int { auto main() -> int {
using utempl::literals::operator""_c; using utempl::literals::operator""_c;