text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: include/fast_io_core_impl/codecvt/code_cvt.h #pragma once namespace fast_io { template<std::integral src_char_type, encoding_scheme src_scheme=execution_charset_encoding_scheme<src_char_type>(), encoding_scheme dst_scheme=encoding_scheme::execution_charset> struct basic_code_converter { using char_type=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/codecvt/code_cvt.h", "license": "mit", "size": 2209}
### File: include/fast_io_core_impl/codecvt/gb18030.h #pragma once namespace fast_io { namespace details::codecvt::gb18030 { template<typename T> requires (sizeof(T)==1) inline constexpr std::size_t get_gb18030_invalid_code_units(T* p_dst) noexcept; template<typename T> requires (sizeof(T)==1) inline constexpr std...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/codecvt/gb18030.h", "license": "mit", "size": 1195}
### File: include/fast_io_core_impl/codecvt/general.h #pragma once namespace fast_io { namespace details::codecvt { template<encoding_scheme encoding,typename T> inline constexpr auto general_advance(T* src_first,std::size_t sz) noexcept { if constexpr(encoding_scheme::utf_ebcdic==encoding) return utf_ebcdic_adva...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/codecvt/general.h", "license": "mit", "size": 17131}
### File: include/fast_io_core_impl/codecvt/impl.h #pragma once #include"gb18030.h" #include"utf_ebcdic.h" #include"utf_util_table.h" #include"utf.h" #include"general.h" #include"code_cvt.h" namespace fast_io { template<std::integral char_type,std::integral cross_char_type> inline constexpr auto status_io_print_fo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/codecvt/impl.h", "license": "mit", "size": 600}
### File: include/fast_io_core_impl/codecvt/utf.h #pragma once namespace fast_io { struct u8utf_mb_state { char8_t bytes[7]; char8_t size{}; explicit inline constexpr operator bool() const noexcept { return static_cast<bool>(size); } }; struct u16utf_mb_state { char16_t value; bool state{}; explicit inlin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/codecvt/utf.h", "license": "mit", "size": 19489}
### File: include/fast_io_core_impl/codecvt/utf_ebcdic.h #pragma once namespace fast_io::details { /* Referenced from UTF-EBCDIC Unicode Technical Report #16 UTF-EBCDIC EBCDIC-Friendly Unicode (or UCS) Transformation Format 1999-06-24 https://www.unicode.org/reports/tr16/tr16-5.html */ inline constexpr char8_t bm_i8_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/codecvt/utf_ebcdic.h", "license": "mit", "size": 6653}
### File: include/fast_io_core_impl/compare.h #pragma once namespace fast_io { template<std::integral char_type,typename T> requires (std::same_as<T,std::weak_ordering>||std::same_as<T,std::strong_ordering>|| std::same_as<T,std::partial_ordering>) inline constexpr std::size_t print_reserve_size(io_reserve_type_t<ch...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/compare.h", "license": "mit", "size": 1125}
### File: include/fast_io_core_impl/concat/concat_buffer.h #pragma once namespace fast_io::details { template<std::integral ch_type> struct basic_concat_buffer { using char_type = ch_type; static inline constexpr std::size_t buffer_size{2048u/sizeof(ch_type)}; char_type *buffer_begin,*buffer_curr,*buffer_end; ch...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concat/concat_buffer.h", "license": "mit", "size": 3815}
### File: include/fast_io_core_impl/concat/concat_general.h #pragma once namespace fast_io::details::decay { template<bool line,::std::integral char_type,typename T,typename... Args> inline constexpr char_type* print_reserve_define_chain_impl(char_type* p,T t,Args ...args) { if constexpr(sizeof...(Args)==0) { p=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concat/concat_general.h", "license": "mit", "size": 10917}
### File: include/fast_io_core_impl/concat/impl.h #pragma once #include"strlike_reference_wrapper.h" #include"concat_buffer.h" #include"concat_general.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concat/impl.h", "license": "mit", "size": 107}
### File: include/fast_io_core_impl/concat/strlike_reference_wrapper.h #pragma once namespace fast_io { template<std::integral ch_type,typename T> struct io_strlike_reference_wrapper { using value_type = T; using native_handle_type = value_type*; using char_type = ch_type; using pointer = char_type*; using cons...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concat/strlike_reference_wrapper.h", "license": "mit", "size": 5682}
### File: include/fast_io_core_impl/concepts/decorator.h #pragma once namespace fast_io { #if 0 template<typename to_value_type,typename T> concept decorator=requires(T t,to_value_type* dest,std::size_t size) { {deco_reserve_size(io_reserve_type<to_value_type,T>,t,size)}->std::same_as<std::size_t>; }; template<type...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/decorator.h", "license": "mit", "size": 1623}
### File: include/fast_io_core_impl/concepts/details.h #pragma once namespace fast_io::details { template<typename T> concept stream_char_type_requirement = requires() { typename std::remove_cvref_t<T>::char_type; }; template<typename T> concept input_stream_impl = (stream_char_type_requirement<T>|| (requires() {...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/details.h", "license": "mit", "size": 6008}
### File: include/fast_io_core_impl/concepts/impl.h #pragma once #include"type.h" #include"parse_code.h" #include"details.h" #include"stream.h" #include"operation_details.h" #include"operation.h" #include"decorator.h" #include"strlike.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/impl.h", "license": "mit", "size": 190}
### File: include/fast_io_core_impl/concepts/operation.h #pragma once namespace fast_io { template<typename char_type, typename T> concept contiguous_scannable = requires(char_type const* begin, char_type const* end, T t) { {scan_contiguous_define(io_reserve_type<char_type,T>,begin,end,t)}->std::same_as<parse_resul...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/operation.h", "license": "mit", "size": 8226}
### File: include/fast_io_core_impl/concepts/operation_details.h #pragma once namespace fast_io::details { template<typename ch_type> concept character = std::integral<ch_type>&&(std::same_as<ch_type,char>||std::same_as<ch_type,wchar_t>||std::same_as<ch_type,char16_t>|| std::same_as<ch_type,char8_t>||std::same_as<c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/operation_details.h", "license": "mit", "size": 3709}
### File: include/fast_io_core_impl/concepts/parse_code.h #pragma once namespace fast_io { enum class parse_code:char unsigned { ok = 0, end_of_file = 1, partial = 2, invalid = 3, overflow = 4 }; template<typename Iter> struct parse_result { using iterator = Iter; iterator iter; parse_code code; }; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/parse_code.h", "license": "mit", "size": 255}
### File: include/fast_io_core_impl/concepts/stream.h #pragma once namespace fast_io { template<typename T> concept stream = details::input_stream_impl<T>||details::output_stream_impl<T>; template<typename T> concept input_stream = stream<T>&&details::input_stream_impl<T>; template<typename T> concept output_strea...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/stream.h", "license": "mit", "size": 5156}
### File: include/fast_io_core_impl/concepts/strlike.h #pragma once namespace fast_io { template<std::integral char_type,typename T> struct io_strlike_type_t { explicit constexpr io_strlike_type_t() noexcept = default; }; template<std::integral char_type,typename T> inline constexpr io_strlike_type_t<char_type,T> ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/strlike.h", "license": "mit", "size": 2363}
### File: include/fast_io_core_impl/concepts/type.h #pragma once namespace fast_io { template<typename T> struct basic_io_scatter_t { using value_type = T; T const* base; std::size_t len; }; //should be binary compatible with POSIX's iovec using io_scatter_t = basic_io_scatter_t<void>; using io_scatters_t = bas...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/concepts/type.h", "license": "mit", "size": 2062}
### File: include/fast_io_core_impl/dll_mode.h #pragma once namespace fast_io { enum class dll_mode:std::uint_least32_t { none=0, posix_rtld_lazy=static_cast<std::uint_least32_t>(1)<<0, posix_rtld_now=static_cast<std::uint_least32_t>(1)<<1, posix_rtld_binding_mask=static_cast<std::uint_least32_t>(1)<<2, posix_rtld_g...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/dll_mode.h", "license": "mit", "size": 2625}
### File: include/fast_io_core_impl/drain.h #pragma once namespace fast_io { template<buffer_output_stream source_type> constexpr basic_io_scatter_t<typename std::remove_cvref_t<source_type>::char_type> print_alias_define(io_alias_t,manip::drainage<source_type&> source) { auto bg{obuffer_begin(source.reference)}; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/drain.h", "license": "mit", "size": 577}
### File: include/fast_io_core_impl/dynamic_io_buffer.h #pragma once //std::string is not usable in freestanding environments and cause problems for this library //This is a very simple stuff for internal use namespace fast_io { template<std::integral ch_type> class dynamic_io_buffer { public: using char_type = ch_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/dynamic_io_buffer.h", "license": "mit", "size": 5269}
### File: include/fast_io_core_impl/ebcdic.h #pragma once namespace fast_io::details { template<std::integral char_type> inline constexpr bool exec_charset_is_ebcdic() noexcept { if constexpr(std::same_as<std::remove_cvref_t<char_type>,char>) { return static_cast<char8_t>('A')!=u8'A'; } else if constexpr(std::...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/ebcdic.h", "license": "mit", "size": 1505}
### File: include/fast_io_core_impl/empty.h #pragma once namespace fast_io::details { struct empty{}; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/empty.h", "license": "mit", "size": 63}
### File: include/fast_io_core_impl/enums/access_how.h #pragma once namespace fast_io { enum class access_how:std::uint_fast8_t { f_ok=0, x_ok=1, w_ok=2, r_ok=4 }; constexpr access_how operator&(access_how x, access_how y) noexcept { using utype = typename std::underlying_type<access_how>::type; return static_cast<...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/enums/access_how.h", "license": "mit", "size": 1221}
### File: include/fast_io_core_impl/enums/flock.h #pragma once namespace fast_io { enum class file_lock_mode:char unsigned { shared_lock, exclusive_lock, unlock, }; template<std::signed_integral T> struct basic_flock_request { using int_type = T; file_lock_mode type=file_lock_mode::exclusive_lock; seekdir whence...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/enums/flock.h", "license": "mit", "size": 1272}
### File: include/fast_io_core_impl/enums/impl.h #pragma once #include"access_how.h" #include"utime_flags.h" #include"flock.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/enums/impl.h", "license": "mit", "size": 82}
### File: include/fast_io_core_impl/enums/utime_flags.h #pragma once namespace fast_io { enum class utime_flags:std::uint_fast8_t { none,now,omit }; struct unix_timestamp_option { utime_flags flags{utime_flags::omit}; unix_timestamp timestamp{}; constexpr unix_timestamp_option() noexcept=default; constexpr unix...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/enums/utime_flags.h", "license": "mit", "size": 428}
### File: include/fast_io_core_impl/error.h #pragma once namespace fast_io { struct error { using value_type = std::uintptr_t; value_type domain{}; value_type code{}; }; inline constexpr bool operator==(error e1,error e2) noexcept { return e1.domain==e2.domain&&e1.code==e2.code; } inline constexpr bool operato...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/error.h", "license": "mit", "size": 1656}
### File: include/fast_io_core_impl/freestanding/addressof.h #pragma once /* Referenced from libstdc++ https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/include/bits/move.h */ /* C++ freestanding does not provide std::addressof, std::move and std::forward. We need to define them by ourselves. */ namespace f...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/freestanding/addressof.h", "license": "mit", "size": 1324}
### File: include/fast_io_core_impl/freestanding/algorithm.h #pragma once #if defined(__GNUC__) || defined(__clang__) #pragma GCC system_header #endif #if defined(_MSC_VER) && !defined(__clang__) #pragma warning(push) #pragma warning( disable : 4365 ) #endif #if 0 //__STDC_HOSTED__==1 && (!defined(_GLIBCXX_HOSTED) |...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/freestanding/algorithm.h", "license": "mit", "size": 15342}
### File: include/fast_io_core_impl/freestanding/array.h #pragma once namespace fast_io::freestanding { template<typename T,std::size_t N> requires (sizeof(N)!=0) struct array { using value_type = T; using pointer=T*; using const_pointer=T const*; using reference=T&; using const_reference=T const&; using size_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/freestanding/array.h", "license": "mit", "size": 1503}
### File: include/fast_io_core_impl/freestanding/bytes.h #pragma once namespace fast_io::details { #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #elif __has_cpp_attribute(msvc::forceinline) [[msvc::forceinline]] #endif inline constexpr ::std::byte* bytes_copy_naive_n_impl(::std::b...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/freestanding/bytes.h", "license": "mit", "size": 5816}
### File: include/fast_io_core_impl/freestanding/cstr_len.h #pragma once namespace fast_io { namespace details { template<std::integral char_type> inline constexpr std::size_t dummy_cstr_len(char_type const* cstr) noexcept { std::size_t n{}; for(;*cstr;++cstr) ++n; return n; } template<std::integral char_type...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/freestanding/cstr_len.h", "license": "mit", "size": 1676}
### File: include/fast_io_core_impl/freestanding/impl.h #pragma once /* GCC provides more headers in freestanding environment than standard requires because WG21 sucks very badly. no std::array, std::copy and others */ #if defined(__GLIBCXX__) &&__has_include(<bits/ranges_base.h>) && __has_include(<bits/stl_iterato...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/freestanding/impl.h", "license": "mit", "size": 769}
### File: include/fast_io_core_impl/freestanding/relocatable.h #pragma once namespace fast_io::freestanding { template<typename T> struct is_trivially_relocatable { inline static constexpr bool value = ::std::is_trivially_copyable_v<T>; }; template<typename T> inline constexpr bool is_trivially_relocatable_v = is_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/freestanding/relocatable.h", "license": "mit", "size": 723}
### File: include/fast_io_core_impl/http_header.h #pragma once namespace fast_io { template<std::integral ch_type,std::size_t buffer_size=4096u> requires (buffer_size>=64u) struct basic_http_header_buffer { using char_type = ch_type; std::size_t header_length{}; std::size_t http_request_end_location{}; std::size...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/http_header.h", "license": "mit", "size": 10990}
### File: include/fast_io_core_impl/igenerator.h #pragma once namespace fast_io { template<buffer_input_stream input> struct basic_input_buffer_iterator { input *ptr{}; }; namespace details { template<buffer_input_stream input> constexpr basic_input_buffer_iterator<input>& deal_with_underflow(basic_input_buffer_it...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/igenerator.h", "license": "mit", "size": 2690}
### File: include/fast_io_core_impl/integers/chrono.h #pragma once /* Time output should strictly following ISO 8601 2020-11-07T12:50:20Z 2023-02-07T15:53:33+08:00 */ namespace fast_io::details { template<bool unchecked=false,::std::integral char_type,my_unsigned_integral U> inline constexpr char_type* chrono_one...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/chrono.h", "license": "mit", "size": 5823}
### File: include/fast_io_core_impl/integers/crypto_hash.h #pragma once namespace fast_io { namespace details { template<bool uppercase,::std::integral char_type> inline constexpr char_type* crypto_hash_pr_df_impl(std::byte const* first,std::byte const* last,char_type* iter) noexcept { constexpr auto tb{::fast_io:...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/crypto_hash.h", "license": "mit", "size": 19558}
### File: include/fast_io_core_impl/integers/digits_table.h #pragma once namespace fast_io::details { template<::std::integral char_type,bool upper> inline constexpr auto charliteralofnumber(char8_t v) noexcept { if(v<10u) { return ::fast_io::char_literal_add<char_type>(v); } else if constexpr(::fast_io::detail...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/digits_table.h", "license": "mit", "size": 2758}
### File: include/fast_io_core_impl/integers/impl.h #pragma once #if defined(__GNUC__) && !defined(__clang__) #pragma GCC system_header #endif namespace fast_io { namespace details { inline constexpr ::std::size_t method_ptr_size{sizeof(::std::size_t)*2}; inline constexpr ::std::size_t method_ptr_hold_size{::fast_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/impl.h", "license": "mit", "size": 60794}
### File: include/fast_io_core_impl/integers/integer.h #pragma once #include"digits_table.h" #include"match.h" #include"jeaiii_method.h" #include"uprsv/impl.h" #include"impl.h" #include"pointer.h" #include"crypto_hash.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/integer.h", "license": "mit", "size": 170}
### File: include/fast_io_core_impl/integers/jeaiii_method.h #pragma once /* Algorithm: JEAIII Author: jeaiii */ namespace fast_io::details::jeaiii { template<std::integral char_type> inline constexpr void jeaiii_w(char_type* iter,std::uint_fast32_t u) noexcept { constexpr auto const *digitstb{digits_table<char_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/jeaiii_method.h", "license": "mit", "size": 13252}
### File: include/fast_io_core_impl/integers/match.h #pragma once namespace fast_io { namespace manipulators { template<typename T> struct basic_matcher_t { using manip_tag = manip_tag_t; T reference; }; } struct match_context { std::size_t matched{}; }; namespace details { template<::std::input_iterator Iter>...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/match.h", "license": "mit", "size": 2340}
### File: include/fast_io_core_impl/integers/optimize_size/impl.h #pragma once namespace fast_io::details { namespace optimize_size { namespace with_length { template<char8_t base=10,bool uppercase=false,::std::integral char_type,my_unsigned_integral U> inline constexpr void output_unsigned(char_type* str,U value,:...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/optimize_size/impl.h", "license": "mit", "size": 3296}
### File: include/fast_io_core_impl/integers/pointer.h #pragma once namespace fast_io { /* we do not accept char const* since we never know whether it has null terminator. This avoids security vulneralbilities for char * str = 0; print(str); Instead, we print out its pointer value We extend print pointers to pri...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/pointer.h", "license": "mit", "size": 7735}
### File: include/fast_io_core_impl/integers/sto/sto_contiguous.h #pragma once #if defined(_MSC_VER) && !defined(__clang__) #pragma warning(push) #pragma warning( disable : 4061 ) #endif #include"sto_generate_base_tb.h" namespace fast_io { namespace details { inline constexpr bool sto_use_table{true}; template<cha...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/sto/sto_contiguous.h", "license": "mit", "size": 38534}
### File: include/fast_io_core_impl/integers/sto/sto_generate_base_tb.h #pragma once namespace fast_io { namespace details { template<bool ebcdic,char8_t base> requires (2<=base&&base<=36) inline constexpr bool char_digit_to_literal_impl(char8_t& ch) noexcept { using unsigned_char_type = ::std::make_unsigned_t<char...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/sto/sto_generate_base_tb.h", "license": "mit", "size": 3808}
### File: include/fast_io_core_impl/integers/uprsv/dec.h #pragma once namespace fast_io::details::uprsv::decbase { template<bool isfirst, ::std::integral char_type> #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #elif __has_cpp_attribute(msvc::forceinline) [[msvc::forceinline]] #en...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/uprsv/dec.h", "license": "mit", "size": 8585}
### File: include/fast_io_core_impl/integers/uprsv/hex.h #pragma once namespace fast_io::details::uprsv::hexbase { template<bool isfirst,bool uppercase,::std::integral char_type> #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #elif __has_cpp_attribute(msvc::forceinline) [[msvc::for...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/uprsv/hex.h", "license": "mit", "size": 5272}
### File: include/fast_io_core_impl/integers/uprsv/impl.h #pragma once /* fast_io's own uprsv (uint print reserve) algorithm Referenced from xjkp's MyItoA algorithm: https://gitee.com/xjkp2283572185/MyStd/blob/master/MyIntegral/MyItoA.hpp */ #include"dec.h" #include"hex.h" namespace fast_io::details::uprsv { templa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/integers/uprsv/impl.h", "license": "mit", "size": 1691}
### File: include/fast_io_core_impl/intrinsics.h #pragma once #if defined(_MSC_VER) && !defined(__clang__) #include <intrin.h> #pragma warning(push) #pragma warning( disable : 4668 ) #pragma warning( disable : 4800 ) #endif namespace fast_io::details::intrinsics { template<typename T1,typename T2> #if __has_cpp_attr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/intrinsics.h", "license": "mit", "size": 32262}
### File: include/fast_io_core_impl/io_deco_ref.h #pragma once namespace fast_io { template<typename decot> struct deco_reference_wrapper { using decorator_type = decot; decorator_type* ptr{}; }; template<typename decot> constexpr deco_reference_wrapper<decot> deco_value_handle(deco_reference_wrapper<decot> wrap)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/io_deco_ref.h", "license": "mit", "size": 3836}
### File: include/fast_io_core_impl/io_ref.h #pragma once namespace fast_io { template<stream stm> requires (!value_based_stream<stm>) struct io_reference_wrapper { using char_type = typename stm::char_type; using native_handle_type = stm*; stm* ptr{}; inline constexpr void lock() requires(mutex_stream<stm>) { ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/io_ref.h", "license": "mit", "size": 5897}
### File: include/fast_io_core_impl/iso/iso8601.h #pragma once namespace fast_io { template<std::int_least64_t off_to_epoch> struct basic_timestamp { static inline constexpr std::int_least64_t seconds_offset_to_epoch{off_to_epoch}; std::int_least64_t seconds{}; std::uint_least64_t subseconds{}; template<std::int...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/iso/iso8601.h", "license": "mit", "size": 52470}
### File: include/fast_io_core_impl/iso/isos.h #pragma once namespace fast_io { namespace details { template<::std::integral char_type> inline constexpr char_type* output_iso8601_subseconds_main(char_type* iter,std::uint_least64_t subseconds) noexcept { constexpr std::size_t digitsm1(std::numeric_limits<std::uint_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/iso/isos.h", "license": "mit", "size": 1514}
### File: include/fast_io_core_impl/literals/literal.h #pragma once namespace fast_io { template<std::integral ch_type> #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #elif __has_cpp_attribute(msvc::forceinline) [[msvc::forceinline]] #endif inline constexpr ch_type char_literal(ch...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/literals/literal.h", "license": "mit", "size": 2366}
### File: include/fast_io_core_impl/local_new_array_ptr.h #pragma once namespace fast_io::details { template<typename char_type, typename allocator = ::fast_io::native_thread_local_allocator> inline constexpr char_type* allocate_iobuf_space(std::size_t buffer_size) noexcept { #if __cpp_constexpr >=201907L && __cpp_co...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/local_new_array_ptr.h", "license": "mit", "size": 3352}
### File: include/fast_io_core_impl/mode.h #pragma once namespace fast_io { /* https://github.com/gcc-mirror/gcc/blob/41d6b10e96a1de98e90a7c0378437c3255814b16/libstdc%2B%2B-v3/include/bits/fs_fwd.h#L73 Being binary compatible with libstdc++'s file_type */ enum class file_type : signed char { none = 0, not_found = -...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/mode.h", "license": "mit", "size": 21409}
### File: include/fast_io_core_impl/overflow.h #pragma once namespace fast_io { template<buffer_output_stream output> inline constexpr void put(output& out,typename std::remove_cvref_t<output>::char_type ch) { auto curr{obuffer_curr(out)}; auto end{obuffer_end(out)}; /* Referenced from glibc https://github.com/bmi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/overflow.h", "license": "mit", "size": 633}
### File: include/fast_io_core_impl/parse_code.h #pragma once namespace fast_io { namespace details { template<::std::integral char_type> inline constexpr char_type* print_reserve_parse_code_impl(char_type* iter,parse_code code) noexcept { if constexpr(std::same_as<char_type,char>) { switch(code) { case parse_co...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/parse_code.h", "license": "mit", "size": 3719}
### File: include/fast_io_core_impl/perms.h #pragma once namespace fast_io { //https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/include/bits/fs_fwd.h enum class perms : std::uint_least32_t { none = 0, owner_read = 0400, owner_write = 0200, owner_exec = 0100, owner_all = 0700, group_read = 040, group...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/perms.h", "license": "mit", "size": 3328}
### File: include/fast_io_core_impl/pr_rsv.h #pragma once namespace fast_io { namespace details { template<std::integral char_type,typename T> inline constexpr std::size_t pr_rsv_size_impl() noexcept { using nocvref_t = std::remove_cvref_t<T>; if constexpr(alias_printable<nocvref_t>) { using alias_type = declty...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/pr_rsv.h", "license": "mit", "size": 5293}
### File: include/fast_io_core_impl/print_freestanding.h #pragma once namespace fast_io { namespace details::decay { template<std::integral char_type,typename T> inline constexpr void scatter_print_recursive(io_scatter_t* arr,T t) { auto scatter{print_scatter_define(io_reserve_type<char_type,std::remove_cvref_t<T>...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/print_freestanding.h", "license": "mit", "size": 25948}
### File: include/fast_io_core_impl/random_access_transmit.h #pragma once namespace fast_io { namespace details { #if defined(__linux__)||defined(__BSD_VISIBLE) template<output_stream output,input_stream input> inline constexpr std::uintmax_t zero_copy_random_access_transmit_impl(output& outp,input& inp,std::intmax_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/random_access_transmit.h", "license": "mit", "size": 3776}
### File: include/fast_io_core_impl/range_view.h #pragma once namespace fast_io { template <::std::integral ch_type, ::std::input_iterator It> struct sized_range_view_t { using char_type = ch_type; using iterator = It; using value_type = decltype(io_print_alias(*(It{}))); basic_io_scatter_t<char_type> sep; itera...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/range_view.h", "license": "mit", "size": 5749}
### File: include/fast_io_core_impl/read_all.h #pragma once namespace fast_io { namespace details { template<bool throweh=true,::fast_io::input_stream input> #if __has_cpp_attribute(__gnu__::__cold__) [[__gnu__::__cold__]] #endif inline constexpr ::std::conditional_t<throweh,void,bool> read_all_impl_decay_cold(input...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/read_all.h", "license": "mit", "size": 4866}
### File: include/fast_io_core_impl/rwreflect/impl.h #pragma once #include"reflectwrite.h" #include"reflectread.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/rwreflect/impl.h", "license": "mit", "size": 63}
### File: include/fast_io_core_impl/rwreflect/reflectread.h #pragma once namespace fast_io { namespace details { namespace streamreflect { template<typename T> concept has_ibuffer_basic_ops = requires(T instm,typename T::char_type *ptr) { ibuffer_begin(instm); ibuffer_curr(instm); ibuffer_end(instm); ibuffer_se...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/rwreflect/reflectread.h", "license": "mit", "size": 19465}
### File: include/fast_io_core_impl/rwreflect/reflectwrite.h #pragma once namespace fast_io { inline constexpr io_scatter_status_t scatter_size_to_status(std::size_t sz,io_scatter_t const *base,::std::size_t len) noexcept { std::size_t total{sz}; for(std::size_t i{};i!=len;++i) { ::std::size_t blen{base[i].len};...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/rwreflect/reflectwrite.h", "license": "mit", "size": 20482}
### File: include/fast_io_core_impl/scan_freestanding.h #pragma once namespace fast_io { template<input_stream T> requires std::is_trivially_copyable_v<T> struct unget_temp_buffer { using char_type = typename T::char_type; #ifndef __INTELLISENSE__ #if __has_cpp_attribute(msvc::no_unique_address) [[msvc::no_unique_a...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/scan_freestanding.h", "license": "mit", "size": 11677}
### File: include/fast_io_core_impl/secure_clear_guard.h #pragma once namespace fast_io { /* Based on security paper Dead Store Elimination (Still) Considered Harmful https://www.usenix.org/system/files/conference/usenixsecurity17/sec17-yang.pdf https://www.usenix.org/sites/default/files/conference/protected-files...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/secure_clear_guard.h", "license": "mit", "size": 4522}
### File: include/fast_io_core_impl/seek.h #pragma once namespace fast_io { enum class seekdir:std::uint_fast8_t { beg = 0, //SEEK_SET cur = 1, //SEEK_CUR end = 2, //SEEK_END }; template<typename T> struct seek_type_t { inline constexpr explicit seek_type_t() = default; }; template<typename T> inline cons...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/seek.h", "license": "mit", "size": 575}
### File: include/fast_io_core_impl/simd/cpu_flags.h #pragma once namespace fast_io::details::cpu_flags { inline constexpr bool sse2_supported { #if defined(__SSE2__) || (defined(_MSC_VER)&&!defined(__clang__)&&(((defined(__x86_64__) || defined(_M_AMD64))&&!defined(_KERNEL_MODE))||defined(__AVX__))) true #elif define...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/cpu_flags.h", "license": "mit", "size": 1390}
### File: include/fast_io_core_impl/simd/gcc_clang.h #pragma once #ifdef __GNUC__ #pragma GCC system_header #endif namespace fast_io { namespace intrinsics { inline constexpr bool simd_shuffle_size_is_supported(std::size_t n) noexcept { if(n==16) { #if __has_builtin(__builtin_ia32_pshufb128) return true; #else...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/gcc_clang.h", "license": "mit", "size": 20062}
### File: include/fast_io_core_impl/simd/generic.h #pragma once namespace fast_io { namespace intrinsics { template<typename T,std::size_t N> struct #if defined(__has_declspec_attribute) #if __has_declspec_attribute(intrin_type) __declspec(intrin_type) #endif #if __has_declspec_attribute(align) __declspec(align(size...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/generic.h", "license": "mit", "size": 8492}
### File: include/fast_io_core_impl/simd/generic_operations.h #pragma once #if !defined(_MSC_VER) || defined(__clang__) #if defined(__x86_64__) || defined(__i386__) #include <immintrin.h> #elif defined(__arm64__) || defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__) || defined(_M_ARM) #include <arm_neon.h> ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/generic_operations.h", "license": "mit", "size": 137201}
### File: include/fast_io_core_impl/simd/impl.h #pragma once #include"cpu_flags.h" #if __has_cpp_attribute(__gnu__::__vector_size__) #include"gcc_clang.h" #else #include"generic_operations.h" #include"generic.h" #endif #include"x86_64.h" #include"prrsv.h" #include"is_all_zeros.h" #include"mask_countr.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/impl.h", "license": "mit", "size": 262}
### File: include/fast_io_core_impl/simd/is_all_zeros.h #pragma once namespace fast_io { namespace details { inline constexpr bool calculate_can_simd_vector_run_with_cpu_instruction(std::size_t sizeofsimdvector) noexcept { if(sizeofsimdvector==16) { if constexpr( ::fast_io::details::cpu_flags::wasmsimd128_sup...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/is_all_zeros.h", "license": "mit", "size": 7223}
### File: include/fast_io_core_impl/simd/mask_countr.h #pragma once namespace fast_io { namespace details { template<bool ctzero,unsigned pos,typename T> requires (std::same_as<typename ::std::remove_cvref_t<T>::value_type,std::uint_least64_t>) inline constexpr unsigned vector_mask_countr_recursive_impl(T const& v2)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/mask_countr.h", "license": "mit", "size": 6456}
### File: include/fast_io_core_impl/simd/prrsv.h #pragma once namespace fast_io { namespace details { template<::std::forward_iterator Iter,typename T,std::size_t size> inline constexpr Iter print_reserve_df_mm_impl(Iter iter,::fast_io::intrinsics::simd_vector<T,size> const& mm) noexcept { if constexpr(size==0) re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/prrsv.h", "license": "mit", "size": 1279}
### File: include/fast_io_core_impl/simd/x86_64.h #pragma once namespace fast_io::intrinsics { #if __has_cpp_attribute(__gnu__::__vector_size__) using x86_64_m128 [[__gnu__::__vector_size__(16),__gnu__::__may_alias__]] = float; using x86_64_m128d [[__gnu__::__vector_size__(16),__gnu__::__may_alias__]] = double; using ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd/x86_64.h", "license": "mit", "size": 1691}
### File: include/fast_io_core_impl/simd_find.h #pragma once namespace fast_io::details { template<bool signed_disposition, ::std::integral char_type, ::std::size_t N> inline constexpr auto create_find_simd_vector_with_unsigned_toggle(char_type value) noexcept { ::fast_io::freestanding::array<char_type,N> arr; us...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/simd_find.h", "license": "mit", "size": 23920}
### File: include/fast_io_core_impl/socket/addrprt.h #pragma once namespace fast_io { namespace details { template<::std::integral char_type> inline constexpr char_type* prtrsv_inaddr_common_define_impl(char_type* it,char unsigned const * __restrict start) noexcept { for(auto i{start},e{start+4};i!=e;++i) { if(...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket/addrprt.h", "license": "mit", "size": 10638}
### File: include/fast_io_core_impl/socket/addrscn.h #pragma once namespace fast_io { enum class scan_ipv4_context_phase : ::std::uint_least8_t { addr0, dot0, addr1, dot1, addr2, dot2, addr3 }; enum class scan_ipv6_context_phase : ::std::uint_least8_t { nothing, }; enum class scan_integral_context_phase : :...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket/addrscn.h", "license": "mit", "size": 22920}
### File: include/fast_io_core_impl/socket/impl.h #pragma once #include"sock_family.h" #include"sock_protocol.h" #include"sock_type.h" #include"posix_sockaddr.h" #include"ip.h" #include"addrprt.h" #if 0 #include"addrscn.h" #endif namespace fast_io { struct #if __has_cpp_attribute(maybe_unused) [[maybe_unused]] #end...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket/impl.h", "license": "mit", "size": 387}
### File: include/fast_io_core_impl/socket/ip.h #pragma once namespace fast_io { struct ipv4 { posix_in_addr address{}; std::uint_least16_t port{}; }; struct ipv6 { posix_in6_addr address{}; std::uint_least16_t port{}; }; struct ip_address { union { posix_in_addr v4; posix_in6_addr v6; }address{.v6={}};...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket/ip.h", "license": "mit", "size": 838}
### File: include/fast_io_core_impl/socket/posix_sockaddr.h #pragma once namespace fast_io { #if defined(_MSC_VER) && !defined(__clang__) #pragma warning(push, _STL_WARNING_LEVEL) #pragma warning(disable : 4324) #endif struct #if __has_cpp_attribute(__gnu__::__may_alias__) [[__gnu__::__may_alias__]] #endif alignas(16...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket/posix_sockaddr.h", "license": "mit", "size": 1191}
### File: include/fast_io_core_impl/socket/sock_family.h #pragma once namespace fast_io { enum class sock_family { unspec=-1, /* Unspec */ alg=0, /* Algorithm sockets. */ appletalk, /* Appletalk DDP. */ arp, /* Address Resolution Protocol */ ash, /* Ash. */ atm, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket/sock_family.h", "license": "mit", "size": 3741}
### File: include/fast_io_core_impl/socket/sock_protocol.h #pragma once namespace fast_io { /* https://github.com/mirror/mingw-w64/blob/99b840e52d6e46f689b9cd086d925fad88db2b17/mingw-w64-headers/include/winsock2.h */ enum class sock_protocol { ah, /* authentication header. */ beetph, /* IP option p...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket/sock_protocol.h", "license": "mit", "size": 1935}
### File: include/fast_io_core_impl/socket/sock_type.h #pragma once namespace fast_io { enum class sock_type:char8_t { stream, dgram, seqpacket, raw, rdm, packet }; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket/sock_type.h", "license": "mit", "size": 118}
### File: include/fast_io_core_impl/socket_enum.h #pragma once //https://github.com/bminor/glibc/blob/5f72f9800b250410cad3abfeeb09469ef12b2438/sysdeps/unix/sysv/linux/bits/socket.h //https://github.com/freebsd/freebsd/blob/230874c33e0e80cfe736ebb023cd26102b0572e2/sys/sys/socket.h namespace fast_io { enum class prot...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/socket_enum.h", "license": "mit", "size": 936}
### File: include/fast_io_core_impl/source_location.h #pragma once namespace fast_io { struct source_location_scatter { basic_io_scatter_t<char> file_name; basic_io_scatter_t<char> function_name; std::uint_least32_t line; std::uint_least32_t column; }; namespace details { inline constexpr std::size_t print_res...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/source_location.h", "license": "mit", "size": 2249}
### File: include/fast_io_core_impl/temporary_buffer.h #pragma once namespace fast_io::details { template<typename output> requires (output_stream<output>) struct temporary_buffer { using char_type = typename output::char_type; static inline constexpr std::size_t buffer_size{512}; std::size_t pos{}; char_type bu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/temporary_buffer.h", "license": "mit", "size": 4454}
### File: include/fast_io_core_impl/terminate.h #pragma once #if defined(_MSC_VER)&&!defined(__clang__) #include<cstdlib> #endif namespace fast_io { [[noreturn]] inline void fast_terminate() noexcept { //https://llvm.org/doxygen/Compiler_8h_source.html #if defined(__has_builtin) #if __has_builtin(__builtin_trap) _...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/terminate.h", "license": "mit", "size": 409}
### File: include/fast_io_core_impl/timestamp_counter.h #pragma once namespace fast_io { inline auto current_processor_timestamp_counter() noexcept { #if defined(__has_builtin) #if __has_builtin(__builtin_ia32_rdtsc) return __builtin_ia32_rdtsc(); #else return static_cast<std::uint_least64_t>(0); #endif #elif defi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/timestamp_counter.h", "license": "mit", "size": 477}
### File: include/fast_io_core_impl/to.h #pragma once namespace fast_io { namespace details { template<std::integral char_type,typename state,typename T,typename Arg1,typename ...Args> #if __has_cpp_attribute(__gnu__::__always_inline__) [[__gnu__::__always_inline__]] #elif __has_cpp_attribute(msvc::forceinline) [[m...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/to.h", "license": "mit", "size": 17631}
### File: include/fast_io_core_impl/transmit/impl.h #pragma once #include"transmit.h" #include"scanner.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_core_impl/transmit/impl.h", "license": "mit", "size": 58}