Skip to content

Commit be22dc8

Browse files
authored
Merge pull request #1263 from trcrsired/next
remove everything with thread since the api is terrible
2 parents 96c7047 + 7bbcc47 commit be22dc8

File tree

4 files changed

+14
-50
lines changed

4 files changed

+14
-50
lines changed

benchmark/0011.containers/deque/0001.push_back/fast_io_reverse.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <fast_io.h>
22
#include <fast_io_driver/timer.h>
33
#include <fast_io_dsal/deque.h>
4+
#include <ranges>
45

56
int main()
67
{

examples/0040.thread/thread.cc

Lines changed: 0 additions & 38 deletions
This file was deleted.

include/fast_io_hosted/threads/thread/impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
2+
#if 0
33
#if (defined(_WIN32) && !defined(__WINE__)) && !defined(__CYGWIN__)
44
#include "win32.h"
55
#ifndef _WIN32_WINDOWS
@@ -12,3 +12,4 @@
1212
#elif !defined(__SINGLE_THREAD__) && !defined(__NEWLIB__) && !defined(__MSDOS__) && __has_include(<pthread.h>)
1313
#include "pthread.h"
1414
#endif
15+
#endif

tests/0026.container/0013.str_btree_set/str_btree_set.cc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
#include <ranges>
22
#include <fast_io.h>
33
#include <fast_io_dsal/str_btree_set.h>
44

@@ -41,13 +41,13 @@ int main()
4141
}
4242

4343
::fast_io::io::print("\nreverse:\n");
44-
/*
45-
// ::std::ranges::reverse_view does not pass CI
46-
for (auto const &e : ::std::ranges::reverse_view(bset))
47-
*/
48-
for(auto i{bset.crbegin()},ed{bset.crend()};i!=ed;++i)
44+
/*
45+
// ::std::ranges::reverse_view does not pass CI
46+
for (auto const &e : ::std::ranges::reverse_view(bset))
47+
*/
48+
for (auto i{bset.crbegin()}, ed{bset.crend()}; i != ed; ++i)
4949
{
50-
auto const& e{*i};
50+
auto const &e{*i};
5151
::fast_io::io::println(e);
5252
}
5353

@@ -76,10 +76,10 @@ int main()
7676
::fast_io::io::println("found: ", *it);
7777
}
7878
}
79-
for (::std::size_t i{};i!=::std::size(fruits);++i)
80-
{
81-
auto const& e{fruits[i]};
82-
bset.erase_key(e);
79+
for (::std::size_t i{}; i != ::std::ranges::size(fruits); ++i)
80+
{
81+
auto const &e{fruits[i]};
82+
bset.erase_key(e);
8383
}
8484

8585
::fast_io::io::println("bset.is_empty():", bset.is_empty());

0 commit comments

Comments
 (0)