text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: include/fast_io_hosted/platforms/win32_mapping.h
#pragma once
namespace fast_io
{
enum class win32_file_map_attribute
{
copy=0x00000001,write=0x00000002,read=0x00000004,all_access=0x000f001f,execute=0x00000020
};
constexpr win32_file_map_attribute operator&(win32_file_map_attribute x, win32_file_map_attri... | {"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_hosted/platforms/win32_mapping.h", "license": "mit", "size": 7702} |
### File: include/fast_io_hosted/platforms/win32_network/service.h
#pragma once
namespace fast_io
{
struct win32_wsa_service
{
using native_handle_type = win32::wsadata;
win32::wsadata wsa_data;
explicit win32_wsa_service(std::uint_least16_t version)
{
if(win32::WSAStartup(version,__builtin_addressof(wsa_data)... | {"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_hosted/platforms/win32_network/service.h", "license": "mit", "size": 658} |
### File: include/fast_io_hosted/platforms/win32_network/socket_file.h
#pragma once
namespace fast_io
{
using win32_socklen_t = int;
template<win32_family family,std::integral ch_type>
class basic_win32_family_socket_io_observer
{
public:
using char_type = ch_type;
using native_handle_type = std::uintptr_t;
nati... | {"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_hosted/platforms/win32_network/socket_file.h", "license": "mit", "size": 26239} |
### File: include/fast_io_hosted/platforms/win32_network/win32.h
#pragma once
#if defined(_MSC_VER) && !defined(_KERNEL_MODE)
#pragma comment(lib,"ws2_32.lib")
#endif
#include"service.h"
#include"socket_file.h"
#include"win32_dns.h"
#if !defined(_MSC_VER) && !defined(__WINE__) && !defined(__CYGWIN__)
#include"win32... | {"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_hosted/platforms/win32_network/win32.h", "license": "mit", "size": 275} |
### File: include/fast_io_hosted/platforms/win32_network/win32_9x_dns.h
#pragma once
namespace fast_io
{
namespace win32
{
struct hostent
{
char *h_name;
char **h_aliases;
short h_addrtype;
short h_length;
char **h_addr_list;
};
#if defined(_MSC_VER) && !defined(__clang__)
__declspec(dllimport)
#elif (__has_cpp_... | {"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_hosted/platforms/win32_network/win32_9x_dns.h", "license": "mit", "size": 5553} |
### File: include/fast_io_hosted/platforms/win32_network/win32_dns.h
#pragma once
namespace fast_io
{
template<win32_family fam>
requires (fam==win32_family::ansi_9x||fam==win32_family::wide_nt)
class win32_family_dns_io_observer
{
public:
using char_type = std::conditional_t<fam==win32_family::wide_nt,char16_t,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_hosted/platforms/win32_network/win32_dns.h", "license": "mit", "size": 8843} |
### File: include/fast_io_hosted/platforms/win32_scheduling.h
#pragma once
namespace fast_io
{
inline void io_async_wait(win32_io_observer iocp)
{
std::uint_least32_t transferred{};
std::uintptr_t completionkey{};
win32::overlapped *over{};
if(!GetQueuedCompletionStatus(iocp.native_handle(),__builtin_addressof(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_hosted/platforms/win32_scheduling.h", "license": "mit", "size": 1374} |
### File: include/fast_io_hosted/platforms/wine/linux_syscall_table/i686.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_hosted/platforms/wine/linux_syscall_table/i686.h", "license": "mit", "size": 3} |
### File: include/fast_io_hosted/platforms/wine/linux_syscall_table/impl.h
#pragma once
namespace fast_io::wine
{
using linux_syscall_table =
#if defined(__x86_64__)
linux_syscall_table_x86_64
#else
linux_syscall_table_i686
#endif
;
}
| {"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_hosted/platforms/wine/linux_syscall_table/impl.h", "license": "mit", "size": 166} |
### File: include/fast_io_hosted/platforms/wine/linux_syscall_table/x86_64.h
#pragma once
namespace fast_io::wine::linux_syscall_table_x86_64
{
}
| {"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_hosted/platforms/wine/linux_syscall_table/x86_64.h", "license": "mit", "size": 74} |
### File: include/fast_io_hosted/platforms/wine/wine.h
#pragma once
namespace fast_io
{
enum class wine_family:std::uint_least32_t
{
unspecified_host=0,
linux_host=1,
cygwin_host=2,
native=
#if defined(_WIN32_WINE_LINUX)
linux_host
#else
unspecified_host
#endif
};
template<wine_family family,std::integral ch_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_hosted/platforms/wine/wine.h", "license": "mit", "size": 2232} |
### File: include/fast_io_hosted/posix_error.h
#pragma once
namespace fast_io
{
inline constexpr std::uintptr_t domain_define(error_type_t<::fast_io::freestanding::errc>) noexcept
{
if constexpr(sizeof(std::uintptr_t)<=sizeof(std::uint_least16_t))
return 52386u;
else if constexpr(sizeof(std::uintptr_t)<=sizeof(... | {"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_hosted/posix_error.h", "license": "mit", "size": 2760} |
### File: include/fast_io_hosted/posix_error_scatter/avr.h
if constexpr(std::same_as<char_type,char>)
{
switch(errn)
{
case 0:
return tsc("Success");
#if defined(EDOM)
case EDOM:
return tsc("Mathematics argument out of domain of function");
#endif
#if defined(ERANGE)
case ERANGE:
return tsc("Result too large");
#... | {"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_hosted/posix_error_scatter/avr.h", "license": "mit", "size": 3520} |
### File: include/fast_io_hosted/posix_error_scatter/generic.h
if constexpr(std::same_as<char_type,char>)
{
switch(errn)
{
case 0:
return tsc("Success");
#if defined (EPERM) && (!defined (EACCES) || (EPERM != EACCES))
case EPERM:
return tsc("Not owner");
#endif
#ifdef ENOENT
case ENOENT:
return tsc("No such file ... | {"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_hosted/posix_error_scatter/generic.h", "license": "mit", "size": 38475} |
### File: include/fast_io_hosted/posix_error_scatter/impl.h
#pragma once
namespace fast_io
{
/*
Unfortunately, strerror is not thread-safe and strerror_r is not guaranteed to be available on all platforms.
BTW. I wouldn't say I like the idea this can be affected by locale. Locale is trash.
The libc implementation wil... | {"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_hosted/posix_error_scatter/impl.h", "license": "mit", "size": 1351} |
### File: include/fast_io_hosted/posix_error_scatter/unknown.h
if constexpr(std::same_as<char_type,char>)
{
return tsc("Unknown");
}
else if constexpr(std::same_as<char_type,wchar_t>)
{
return tsc(L"Unknown");
}
else if constexpr(std::same_as<char_type,char16_t>)
{
return tsc(u"Unknown");
}
else if con... | {"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_hosted/posix_error_scatter/unknown.h", "license": "mit", "size": 370} |
### File: include/fast_io_hosted/posix_status.h
#pragma once
namespace fast_io
{
/*
Referenced from man on Linux
*/
struct posix_file_status
{
std::uintmax_t dev; // ID of device containing file
std::uintmax_t ino; // Inode number
perms perm;
file_type type;
std::uintmax_t nlink; // Number of hard li... | {"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_hosted/posix_status.h", "license": "mit", "size": 14642} |
### File: include/fast_io_hosted/process_revamp/native.h
#pragma once
#if !defined(__MSDOS__) && !defined(__NEWLIB__) && !defined(__wasi__) && !defined(_PICOLIBC__)
#if defined(_WIN32)
#include"nt.h"
#elif __has_include(<sys/wait.h>)
#include <sys/wait.h>
#include"posix.h"
#endif
#endif
| {"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_hosted/process_revamp/native.h", "license": "mit", "size": 237} |
### File: include/fast_io_hosted/process_revamp/nt.h
#pragma once
namespace fast_io
{
struct nt_user_process_information
{
void* hprocess{};
void* hthread{};
};
namespace win32::nt::details
{
template<nt_family family>
inline void close_nt_user_process_information_not_null(nt_user_process_information* hnt_user_pr... | {"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_hosted/process_revamp/nt.h", "license": "mit", "size": 12739} |
### File: include/fast_io_hosted/process_revamp/posix.h
#pragma once
#if __has_include(<initializer_list>)
#include<initializer_list>
#endif
namespace fast_io
{
namespace posix
{
extern int libc_fexecve(int fd, char *const* argv, char *const* envp) noexcept __asm__("fexecve");
}
struct posix_wait_status
{
int wait... | {"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_hosted/process_revamp/posix.h", "license": "mit", "size": 12388} |
### File: include/fast_io_hosted/process_revamp/win32.h
#pragma once
namespace fast_io
{
class win32_process_observer
{
public:
using native_handle_type = pid_t;
pid_t pid{-1};
constexpr auto& native_handle() noexcept
{
return pid;
}
constexpr auto& native_handle() const noexcept
{
return pid;
}
explici... | {"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_hosted/process_revamp/win32.h", "license": "mit", "size": 458} |
### File: include/fast_io_hosted/threads/mutex/gcc_gthread_mutex.h
#pragma once
namespace fast_io
{
struct gcc_gthread_mutex
{
using native_handle_type = __gthread_mutex_t;
native_handle_type mutex{};
constexpr explicit gcc_gthread_mutex() noexcept=default;
gcc_gthread_mutex(gcc_gthread_mutex const&)=delete;
gc... | {"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_hosted/threads/mutex/gcc_gthread_mutex.h", "license": "mit", "size": 580} |
### File: include/fast_io_hosted/threads/mutex/impl.h
#pragma once
#include"single.h"
#ifdef __USING_MCFGTHREAD__
#include <mcfgthread/mutex.h>
#include "mcf_gthread_mutex.h"
#endif
#if defined(_WIN32) || defined(__CYGWIN__)
#include"rtl_critical_section.h"
#include"win32_critical_section.h"
#endif
#if !defined(__SIN... | {"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_hosted/threads/mutex/impl.h", "license": "mit", "size": 863} |
### File: include/fast_io_hosted/threads/mutex/mcf_gthread_mutex.h
#pragma once
namespace fast_io
{
struct mcf_gthread_mutex
{
using native_handle_type = __MCF_mutex;
native_handle_type mutex{};
explicit mcf_gthread_mutex() noexcept
{
_MCF_mutex_init(__builtin_addressof(mutex));
}
mcf_gthread_mutex(mcf_gthre... | {"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_hosted/threads/mutex/mcf_gthread_mutex.h", "license": "mit", "size": 662} |
### File: include/fast_io_hosted/threads/mutex/posix_pthread_mutex.h
#pragma once
#include<pthread.h>
namespace fast_io
{
struct posix_pthread_mutex
{
using native_handle_type = pthread_mutex_t;
native_handle_type mutex;
explicit posix_pthread_mutex() noexcept:mutex(PTHREAD_MUTEX_INITIALIZER)
{}
posix_pthread_... | {"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_hosted/threads/mutex/posix_pthread_mutex.h", "license": "mit", "size": 791} |
### File: include/fast_io_hosted/threads/mutex/rtl_critical_section.h
#pragma once
namespace fast_io
{
struct rtl_critical_section
{
using native_handle_type = ::fast_io::win32::nt::rtl_critical_section;
native_handle_type critical_section;
explicit rtl_critical_section() noexcept
{
::fast_io::win32::nt::RtlIn... | {"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_hosted/threads/mutex/rtl_critical_section.h", "license": "mit", "size": 940} |
### File: include/fast_io_hosted/threads/mutex/single.h
#pragma once
namespace fast_io
{
struct single_thread_noop_mutex
{
constexpr void lock() noexcept {}
constexpr void unlock() noexcept {}
constexpr void try_lock() noexcept {}
};
} | {"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_hosted/threads/mutex/single.h", "license": "mit", "size": 188} |
### File: include/fast_io_hosted/threads/mutex/win32_critical_section.h
#pragma once
namespace fast_io
{
struct win32_critical_section
{
using native_handle_type = ::fast_io::win32::nt::rtl_critical_section;
native_handle_type critical_section;
explicit win32_critical_section() noexcept
{
::fast_io::win32::Ini... | {"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_hosted/threads/mutex/win32_critical_section.h", "license": "mit", "size": 919} |
### File: include/fast_io_hosted/timeutil/environ_timezone.h
#pragma once
#include<cstdlib>
namespace fast_io
{
struct environ_timezone_name
{
using char8_const_may_alias_ptr
#if __has_cpp_attribute(__gnu__::__may_alias__)
[[__gnu__::__may_alias__]]
#endif
= char8_t const*;
char8_const_may_alias_ptr name{u8"Etc/... | {"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_hosted/timeutil/environ_timezone.h", "license": "mit", "size": 1119} |
### File: include/fast_io_hosted/timeutil/impl.h
#pragma once
#include"time.h"
#if (defined(_WIN32) && !defined(__WINE__)) || defined(__CYGWIN__)
#include"win32_timezone.h"
#endif
#if !defined(_WIN32) || defined(__WINE__)
#if defined(__MSDOS__) || (defined(__NEWLIB__) && !defined(__CYGWIN__)) || defined(__wasi__)
#inc... | {"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_hosted/timeutil/impl.h", "license": "mit", "size": 397} |
### File: include/fast_io_hosted/timeutil/posix_timezone.h
#pragma once
namespace fast_io
{
struct posix_timezone_name
{
char8_t *ptr{};
std::size_t n{};
constexpr posix_timezone_name() noexcept=default;
constexpr posix_timezone_name(posix_timezone_name const&)=delete;
posix_timezone_name& operator=(posix_timezo... | {"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_hosted/timeutil/posix_timezone.h", "license": "mit", "size": 3112} |
### File: include/fast_io_hosted/timeutil/time.h
#pragma once
namespace fast_io
{
#if !defined(_WIN32) && !defined(__AVR__) && !defined(__MSDOS__)
namespace posix
{
extern int libc_clock_getres(clockid_t clk_id, struct timespec *tp) noexcept __asm__("clock_getres");
extern int libc_clock_settime(clockid_t clk_id, str... | {"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_hosted/timeutil/time.h", "license": "mit", "size": 28763} |
### File: include/fast_io_hosted/timeutil/win32_regtz_to_ianatz.h
#pragma once
inline constexpr basic_io_scatter_t<char8_t> win32_registry_timezone_9xa[]
{
{u8"AUS Central Standard Time",25},
{u8"AUS Eastern Standard Time",25},
{u8"Afghanistan Standard Time",25},
{u8"Alaskan Standard Time",21},
{u8"Aleutian Standard 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_hosted/timeutil/win32_regtz_to_ianatz.h", "license": "mit", "size": 26007} |
### File: include/fast_io_hosted/timeutil/win32_timezone.h
#pragma once
namespace fast_io
{
struct win32_timezone_name
{
std::size_t position{183};
};
enum win32_timezone_family
{
registry,
gettimezoneinformation,
#ifdef __BIONIC__
//Intel pintool does not support registry api
native = gettimezoneinformation
#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_hosted/timeutil/win32_timezone.h", "license": "mit", "size": 5874} |
### File: include/fast_io_hosted/white_hole/linux_getrandom.h
#pragma once
#if !(defined(__linux__) && defined(__NR_getrandom)) && __has_include(<sys/random.h>)
#include<sys/random.h>
#endif
namespace fast_io
{
template<std::integral ch_type>
class basic_linux_getrandom
{
public:
using char_type = ch_type;
unsigne... | {"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_hosted/white_hole/linux_getrandom.h", "license": "mit", "size": 1320} |
### File: include/fast_io_hosted/white_hole/posix_dev_urandom.h
#pragma once
namespace fast_io
{
template<input_stream T>
class posix_dev_urandom
{
public:
using native_handle_type = T;
using char_type = typename native_handle_type::char_type;
native_handle_type device;
template<typename... Args>
requires ((siz... | {"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_hosted/white_hole/posix_dev_urandom.h", "license": "mit", "size": 1328} |
### File: include/fast_io_hosted/white_hole/rtl_gen_random.h
#pragma once
namespace fast_io
{
#if defined(_MSC_VER) && !defined(_KERNEL_MODE)
#pragma comment(lib,"advapi32.lib")
#endif
template<std::integral ch_type>
class basic_rtl_gen_random
{
public:
using char_type = ch_type;
constexpr void close() noexcept{}... | {"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_hosted/white_hole/rtl_gen_random.h", "license": "mit", "size": 1817} |
### File: include/fast_io_hosted/white_hole/wasi_random_get.h
#pragma once
namespace fast_io
{
namespace details
{
inline void wasi_random_get_full_impl(void* ptr,std::size_t sz)
{
using u8ptr_may_alias
#if __has_cpp_attribute(__gnu__::__may_alias__)
[[__gnu__::__may_alias__]]
#endif
= std::uint_least8_t*;
auto ... | {"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_hosted/white_hole/wasi_random_get.h", "license": "mit", "size": 2100} |
### File: include/fast_io_hosted/white_hole/white_hole.h
#pragma once
#if (defined(_WIN32)&&!defined(__WINE__)) || defined(__CYGWIN__)
#include"rtl_gen_random.h"
#include"win32_crypt_gen_random.h"
#endif
#if defined(__wasi__)
#include"wasi_random_get.h"
#endif
namespace fast_io::details
{
template<typename T>
concept... | {"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_hosted/white_hole/white_hole.h", "license": "mit", "size": 3771} |
### File: include/fast_io_hosted/white_hole/win32_crypt_gen_random.h
#pragma once
namespace fast_io
{
template<std::integral ch_type>
class basic_win32_crypt_gen_random_io_observer
{
public:
using native_handle_type = std::uintptr_t;
using char_type = ch_type;
native_handle_type hprov{};
inline constexpr native_... | {"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_hosted/white_hole/win32_crypt_gen_random.h", "license": "mit", "size": 4177} |
### File: include/fast_io_hosted/wrapper.h
#pragma once
namespace fast_io
{
template<stream T,open_mode interface_mode>
struct basic_file_wrapper:public T
{
using typename T::char_type;
using typename T::native_handle_type;
using typename T::file_factory_type;
constexpr basic_file_wrapper() noexcept=default;
te... | {"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_hosted/wrapper.h", "license": "mit", "size": 1537} |
### File: include/fast_io_hosted_crypto.h
#pragma once
#if !defined(__cplusplus)
#error "You are not using a C++ compiler"
#endif
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
#if defined(_MSC_VER) && !defined(__clang__)
#pragma warning(push)
#pragma warning( disable... | {"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_hosted_crypto.h", "license": "mit", "size": 885} |
### File: include/fast_io_i18n.h
#pragma once
#if !defined(__cplusplus)
#error "You are not using a C++ compiler"
#endif
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
#include"fast_io_hosted.h"
#if defined(_MSC_VER) && !defined(__clang__)
#pragma warning(push)
#pragma... | {"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_i18n.h", "license": "mit", "size": 1401} |
### File: include/fast_io_i18n/imbuer.h
#pragma once
namespace fast_io
{
template<stream stm>
requires (value_based_stream<stm>&&requires(stm sm)
{
{io_value_handle(sm)}->std::same_as<stm>;
}&&std::is_trivially_copyable_v<stm>)
struct lc_imbuer
{
using handle_type = stm;
using char_type = typename handle_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_i18n/imbuer.h", "license": "mit", "size": 1105} |
### File: include/fast_io_i18n/iso14651.h
#pragma once
/*
TO DO
*/
namespace fast_io::char_category
{
using charmax_t = char32_t;
inline constexpr bool is_iso14651_space(charmax_t ch) noexcept
{
switch(ch)
{
case 0x9:case 0xA:case 0xB:case 0xC:case 0xD:case 0x20:
case 0x1680:case 0x2000:case 0x2001:case 0x2002: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_i18n/iso14651.h", "license": "mit", "size": 460} |
### File: include/fast_io_i18n/lc.h
#pragma once
namespace fast_io
{
template<typename char_type>
struct basic_lc_identification
{
basic_io_scatter_t<char_type> name{};
basic_io_scatter_t<char_type> encoding{};
basic_io_scatter_t<char_type> title{};
basic_io_scatter_t<char_type> source{};
basic_io_scatter_t<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_i18n/lc.h", "license": "mit", "size": 9276} |
### File: include/fast_io_i18n/lc_numbers/boolalpha.h
#pragma once
namespace fast_io
{
template<std::integral char_type,manipulators::scalar_flags flags>
requires (flags.alphabet)
inline constexpr basic_io_scatter_t<char_type> print_scatter_define(basic_lc_all<char_type> const* __restrict all,manipulators::scalar_ma... | {"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_i18n/lc_numbers/boolalpha.h", "license": "mit", "size": 393} |
### File: include/fast_io_i18n/lc_numbers/chrono.h
#pragma once
namespace fast_io
{
template<std::integral char_type>
inline constexpr std::size_t print_reserve_size(basic_lc_all<char_type> const* __restrict all,std::chrono::weekday wkd) noexcept
{
unsigned value(wkd.c_encoding());
if(7<value)
{
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_i18n/lc_numbers/chrono.h", "license": "mit", "size": 8603} |
### File: include/fast_io_i18n/lc_numbers/cond.h
#pragma once
namespace fast_io
{
namespace details
{
template<typename char_type,typename T1,typename T2>
concept cond_ok_lc_scatter_printable_impl=
lc_scatter_printable<char_type,T1>&&
(lc_scatter_printable<char_type,T2>||scatter_printable<char_type,T2>);
template... | {"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_i18n/lc_numbers/cond.h", "license": "mit", "size": 5134} |
### File: include/fast_io_i18n/lc_numbers/impl.h
#pragma once
#include"width.h"
#include"boolalpha.h"
#include"integers.h"
#if __cpp_lib_chrono >= 201907L || (__GNUC__ >= 11 || defined(__clang__))
#if defined(_GLIBCXX_CHRONO) || defined(_LIBCPP_CHRONO) || defined(_CHRONO_)
#include"chrono.h"
#endif
#endif
#inclu... | {"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_i18n/lc_numbers/impl.h", "license": "mit", "size": 304} |
### File: include/fast_io_i18n/lc_numbers/integers.h
#pragma once
namespace fast_io
{
namespace details
{
template<std::integral char_type,manipulators::scalar_flags flags,typename T>
inline constexpr std::size_t lc_print_reserve_size_int_cal(basic_lc_all<char_type> const* __restrict all) noexcept
{
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_i18n/lc_numbers/integers.h", "license": "mit", "size": 13468} |
### File: include/fast_io_i18n/lc_numbers/lc_time.h
#pragma once
/*
Unfinished. Do not use it.
*/
namespace fast_io
{
namespace details
{
/*
https://www.ibm.com/docs/en/aix/7.1?topic=ff-lc-time-category-locale-definition-source-file-format
*/
template <std::integral year_type>
inline constexpr bool is_leap_year(year... | {"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_i18n/lc_numbers/lc_time.h", "license": "mit", "size": 39237} |
### File: include/fast_io_i18n/lc_numbers/width.h
#pragma once
namespace fast_io
{
namespace details
{
template<std::integral char_type,typename T>
inline constexpr std::size_t lc_print_reserve_size_width_impl(basic_lc_all<char_type> const* all,T w,std::size_t width) noexcept
{
using value_type = std::remove_cvref... | {"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_i18n/lc_numbers/width.h", "license": "mit", "size": 4915} |
### File: include/fast_io_i18n/lc_print.h
#pragma once
namespace fast_io
{
namespace details
{
template<typename output,std::integral char_type>
#if __has_cpp_attribute(__gnu__::__cold__)
[[__gnu__::__cold__]]
#endif
constexpr void print_define_impl_lc_identification(output bos,basic_lc_identification<char_type> 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_i18n/lc_print.h", "license": "mit", "size": 40184} |
### File: include/fast_io_i18n/lc_print_status.h
#pragma once
namespace fast_io
{
template<typename char_type,typename T>
concept lc_dynamic_reserve_printable = std::integral<char_type>&&
requires(T t,basic_lc_all<char_type> const* all,char_type* ptr,std::size_t size)
{
{print_reserve_size(all,t)}->std::convertibl... | {"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_i18n/lc_print_status.h", "license": "mit", "size": 14522} |
### File: include/fast_io_i18n/locale/impl.h
#pragma once
#if (defined(_WIN32) && !defined(__WINE__)) || defined(__CYGWIN__)
#include"win32.h"
#endif
#if (!defined(_WIN32) || defined(__WINE__)) && (!defined(__wasi__) || !defined(__NEWLIB__) || defined(__CYGWIN__))
#include"posix.h"
#endif
| {"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_i18n/locale/impl.h", "license": "mit", "size": 249} |
### File: include/fast_io_i18n/locale/posix.h
#pragma once
namespace fast_io
{
namespace details
{
#if defined(_GNU_SOURCE) && !defined(__ANDROID__)
extern char const* libc_secure_getenv(char const*) noexcept __asm__("secure_getenv");
#else
extern char const* libc_getenv(char const*) noexcept __asm__("getenv");
#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_i18n/locale/posix.h", "license": "mit", "size": 6008} |
### File: include/fast_io_i18n/locale/win32.h
#pragma once
namespace fast_io
{
namespace details
{
template<std::integral char_type>
#if __has_cpp_attribute(__gnu__::__cold__)
[[__gnu__::__cold__]]
#endif
inline constexpr char_type* win32_get_locale_name_from_lcid(::std::uint_least32_t lcid,char_type* p) noexcept
{... | {"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_i18n/locale/win32.h", "license": "mit", "size": 10310} |
### File: include/fast_io_i18n/locale/win32_lcid_table.h
if constexpr(::std::same_as<char_type,char16_t>)
{
switch(lcid)
{
case 0x002C:return copy_string_literal(u"az_AZ",p);
case 0x003D:return copy_string_literal(u"yi_US",p);
case 0x0051:return copy_string_literal(u"bo_IN",p);
case 0x0059:return copy_string_literal(u... | {"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_i18n/locale/win32_lcid_table.h", "license": "mit", "size": 21165} |
### File: include/fast_io_i18n/timezone.h
#pragma once
| {"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_i18n/timezone.h", "license": "mit", "size": 17} |
### File: include/fast_io_legacy.h
#pragma once
#if !defined(__cplusplus)
#error "You are not using a C++ compiler"
#endif
#if !defined(__cpp_concepts)
#error "fast_io requires at least C++20 standard compiler."
#else
//fast_io_legacy.h deals with legacy C++ <iostream>/<fstream>/<sstream> interface
#if ((__STDC_HOSTE... | {"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_legacy.h", "license": "mit", "size": 1002} |
### File: include/fast_io_legacy_impl/c/avrlibc.h
#pragma once
namespace fast_io
{
namespace details
{
inline void avr_libc_write_common_impl(FILE* fp, char const* first, char const* last)
{
for(;first!=last;++first)
if(noexcept_call(fp->put,*first,fp))[[unlikely]]
throw_posix_error(EINVAL);
}
inline void avr_... | {"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_legacy_impl/c/avrlibc.h", "license": "mit", "size": 2462} |
### File: include/fast_io_legacy_impl/c/custom.h
#pragma once
namespace fast_io
{
template<std::integral char_type>
requires requires(FILE* fp)
{
{::std::posix::__libc_stdio_fp_ibuffer_begin<char_type>(fp)}->char_type*;
}
inline char_type* ibuffer_begin(basic_c_io_observer_unlocked<char_type> ciob) noexcept
{
retu... | {"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_legacy_impl/c/custom.h", "license": "mit", "size": 3151} |
### File: include/fast_io_legacy_impl/c/done.h
#pragma once
namespace fast_io
{
namespace details
{
#if defined(__CYGWIN__)
#if (__has_cpp_attribute(__gnu__::__dllimport__)&&!defined(__WINE__))
[[__gnu__::__dllimport__]]
#endif
#if __has_cpp_attribute(__gnu__::__cdecl__)
[[__gnu__::__cdecl__]]
#endif
extern std::si... | {"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_legacy_impl/c/done.h", "license": "mit", "size": 10103} |
### File: include/fast_io_legacy_impl/c/general.h
#pragma once
#if __has_include(<cwchar>)
#include<cwchar>
#elif __has_include(<wchar.h>)
#include<wchar.h>
#endif
/*
Provide a general emulation of FILE*'s internal implementation with fgetc_unlocked and ungetc_unlocked.
It is probably slow. However, it is a general ... | {"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_legacy_impl/c/general.h", "license": "mit", "size": 3561} |
### File: include/fast_io_legacy_impl/c/glibc.h
#pragma once
namespace fast_io
{
inline constexpr char* ibuffer_begin(c_io_observer_unlocked cio) noexcept
{
return cio.fp->_IO_read_base;
}
inline constexpr char* ibuffer_curr(c_io_observer_unlocked cio) noexcept
{
return cio.fp->_IO_read_ptr;
}
inline constexpr 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_legacy_impl/c/glibc.h", "license": "mit", "size": 7907} |
### File: include/fast_io_legacy_impl/c/impl.h
#pragma once
#if __has_include(<cstdio>)
#include<cstdio>
#elif __has_include(<stdio.h>)
#include<stdio.h>
#endif
#if defined(__MINGW32__) && !defined(_UCRT) && !defined(__BIONIC__)
#include"msvcrt_lock.h"
#endif
namespace fast_io
{
inline constexpr open_... | {"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_legacy_impl/c/impl.h", "license": "mit", "size": 35656} |
### File: include/fast_io_legacy_impl/c/llvm.h
#pragma once
/*
This implementation is an untested guessing implementation since i do not know how to build LLVM libc.
If you see this does not work, please file an issue on github to cppfastio;
Referenced from
https://github.com/llvm/llvm-project/blob/main/libc/src/__su... | {"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_legacy_impl/c/llvm.h", "license": "mit", "size": 7063} |
### File: include/fast_io_legacy_impl/c/macros_general.h
#pragma once
namespace fast_io
{
inline c_io_observer c_stdin() noexcept
{
return {stdin};
}
inline c_io_observer c_stdout() noexcept
{
return {stdout};
}
inline c_io_observer c_stderr() noexcept
{
return {stderr};
}
inline wc_io_observer wc_stdin() noexc... | {"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_legacy_impl/c/macros_general.h", "license": "mit", "size": 627} |
### File: include/fast_io_legacy_impl/c/mlibc.h
#pragma once
/*
Referenced from:
https://github.com/managarm/mlibc/blob/master/options/ansi/include/stdio.h
*/
namespace fast_io
{
namespace details::mlibc_hack
{
inline constexpr char* hack_ibuffer_begin_impl(FILE* fp) noexcept
{
return fp->__buffer_ptr;
}
inline 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_legacy_impl/c/mlibc.h", "license": "mit", "size": 5306} |
### File: include/fast_io_legacy_impl/c/msvcrt_lock.h
#pragma once
namespace fast_io::win32
{
/*
Referenced from ReactOS
https://doxygen.reactos.org/d2/d1b/sdk_2lib_2crt_2stdio_2file_8c_source.html
Referenced from MinGW-w64 CRT
https://github.com/Alexpux/mingw-w64/blob/d0d7f784833bbb0b2d279310ddc6afb52fe47a46/mingw-... | {"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_legacy_impl/c/msvcrt_lock.h", "license": "mit", "size": 3010} |
### File: include/fast_io_legacy_impl/c/musl.h
#pragma once
namespace fast_io
{
namespace details::fp_hack
{
#ifdef __wasi__
struct fp_model {
unsigned flags;
unsigned char *rpos, *rend;
int (*close)(FILE *);
unsigned char *wend, *wpos;
#ifdef __wasilibc_unmodified_upstream // WASI doesn't need backwards-com... | {"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_legacy_impl/c/musl.h", "license": "mit", "size": 6898} |
### File: include/fast_io_legacy_impl/c/serenity.h
#pragma once
namespace fast_io
{
namespace details
{
/*
Referenced from https://github.com/SerenityOS/serenity/blob/master/Userland/Libraries/LibC/stdio.cpp
*/
struct
#if __has_cpp_attribute(__gnu__::__may_alias__)
[[__gnu__::__may_alias__]]
#endif
serenity_file_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_legacy_impl/c/serenity.h", "license": "mit", "size": 7279} |
### File: include/fast_io_legacy_impl/c/uclibc.h
#pragma once
/* Referenced from
https://github.com/wbx-github/uclibc-ng/blob/master/libc/sysdeps/linux/common/bits/uClibc_stdio.h
*/
#if 0
#if defined __UCLIBC_HAS_THREADS__ && !defined __UCLIBC_IO_MUTEX
/* keep this in sync with uClibc_mutex.h */
# ifdef __USE_STDI... | {"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_legacy_impl/c/uclibc.h", "license": "mit", "size": 6072} |
### File: include/fast_io_legacy_impl/c/unix.h
#pragma once
/*
newlib and many other libcs (including MSVCRT and UCRT windows)'s FILE is very similar to BSD. Maybe they all come from BSD?
Anyway. All FILE implementations are trash tbh.
*/
namespace fast_io
{
namespace details
{
#if defined(__BIONIC__)
struct
#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_legacy_impl/c/unix.h", "license": "mit", "size": 8597} |
### File: include/fast_io_legacy_impl/c/wincrt.h
#pragma once
#if defined(_MSC_VER) && !defined(__clang__)
#pragma warning(push)
#pragma warning( disable : 4710 )
#pragma warning( disable : 4820 )
#endif
namespace fast_io
{
namespace win32
{
#if __has_cpp_attribute(__gnu__::__const__)
[[__gnu__::__const__]]
#endif
... | {"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_legacy_impl/c/wincrt.h", "license": "mit", "size": 18859} |
### File: include/fast_io_legacy_impl/filebuf/bp_hack/common.h
#pragma once
namespace fast_io
{
namespace details::streambuf_hack
{
template<typename char_type,typename traits_type>
class basic_streambuf_hack_model : private ::std::basic_streambuf<char_type,traits_type>
{
public:
using ::std::basic_streambuf<char_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_legacy_impl/filebuf/bp_hack/common.h", "license": "mit", "size": 1579} |
### File: include/fast_io_legacy_impl/filebuf/bp_hack/emulated.h
#pragma once
namespace fast_io
{
namespace details::streambuf_hack
{
template<typename char_type,typename traits_type>
class emulated_basic_streambuf_hack_model : private ::std::basic_streambuf<char_type,traits_type>
{
public:
using ::std::basic_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_legacy_impl/filebuf/bp_hack/emulated.h", "license": "mit", "size": 5703} |
### File: include/fast_io_legacy_impl/filebuf/bp_hack/impl.h
#pragma once
#if defined(_LIBCPP_VERSION)
#include"libc++.h"
#elif defined(__GLIBCXX__)
#include"libstdc++.h"
#elif defined(_MSVC_STL_UPDATE)
#include"msvc_stl.h"
#else
#include"emulated.h"
#endif
#include"common.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_legacy_impl/filebuf/bp_hack/impl.h", "license": "mit", "size": 221} |
### File: include/fast_io_legacy_impl/filebuf/bp_hack/libc++.h
#pragma once
namespace fast_io
{
namespace details::streambuf_hack
{
#if 0
/*
libc++
https://github.com/llvm-mirror/libcxx/blob/master/include/streambuf
*/
locale __loc_;
char_type* __binp_;
char_type* __ninp_;
char_type* __einp_;
char_type* __bout_;
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_legacy_impl/filebuf/bp_hack/libc++.h", "license": "mit", "size": 5188} |
### File: include/fast_io_legacy_impl/filebuf/bp_hack/libstdc++.h
#pragma once
namespace fast_io
{
namespace details::streambuf_hack
{
#if 0
/*
https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/std/streambuf
*/
/*
* This is based on _IO_FILE, just reordered to be more consistent,
* and is 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_legacy_impl/filebuf/bp_hack/libstdc++.h", "license": "mit", "size": 5902} |
### File: include/fast_io_legacy_impl/filebuf/bp_hack/msvc_stl.h
#pragma once
namespace fast_io
{
namespace details::streambuf_hack
{
#if 0
/*
https://github.com/microsoft/STL/blob/master/stl/inc/streambuf
*/
private:
_Elem* _Gfirst; // beginning of read buffer
_Elem* _Pfirst; // beginning of write buffer
... | {"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_legacy_impl/filebuf/bp_hack/msvc_stl.h", "license": "mit", "size": 7176} |
### File: include/fast_io_legacy_impl/filebuf/filebuf_file.h
#pragma once
namespace fast_io
{
namespace details
{
inline constexpr std::ios::openmode calculate_fstream_file_open_mode(open_mode om) noexcept
{
std::ios::openmode ios_om{};
if((om&open_mode::app)!=open_mode::none)
ios_om=ios_om|std::ios... | {"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_legacy_impl/filebuf/filebuf_file.h", "license": "mit", "size": 6128} |
### File: include/fast_io_legacy_impl/filebuf/fp_hack/impl.h
#pragma once
#if defined(_LIBCPP_VERSION)
#include"libc++.h"
#elif defined(__GLIBCXX__)
#include"libstdc++.h"
#elif defined(_MSVC_STL_UPDATE)
#include"msvc_stl.h"
#endif | {"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_legacy_impl/filebuf/fp_hack/impl.h", "license": "mit", "size": 172} |
### File: include/fast_io_legacy_impl/filebuf/fp_hack/libc++.h
#pragma once
#ifdef __GNUC__
#pragma GCC system_header
#endif
/*
https://github.com/llvm/llvm-project/blob/main/libcxx/src/std_stream.h
*/
#include"libc++symbol.h"
namespace fast_io::details::streambuf_hack
{
/*
https://github.com/llvm-mirror/libcxx/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_legacy_impl/filebuf/fp_hack/libc++.h", "license": "mit", "size": 4970} |
### File: include/fast_io_legacy_impl/filebuf/fp_hack/libc++symbol.h
#pragma once
namespace fast_io::details
{
template<std::size_t n>
inline constexpr char8_t* compute_libcxx_copy_string_literal(char8_t const(&s)[n],char8_t* result) noexcept
{
constexpr
::std::size_t mn1{static_cast<::std::size_t>(n-1u)};
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_legacy_impl/filebuf/fp_hack/libc++symbol.h", "license": "mit", "size": 5912} |
### File: include/fast_io_legacy_impl/filebuf/fp_hack/libstdc++.h
#pragma once
//https://www.ginac.de/~kreckel/fileno/
#ifdef __cpp_rtti
#include <ext/stdio_sync_filebuf.h>
#endif
#ifdef __GNUC__
#pragma GCC system_header
#endif
namespace fast_io::details
{
inline constexpr std::ios::openmode calculate_fstream_file_... | {"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_legacy_impl/filebuf/fp_hack/libstdc++.h", "license": "mit", "size": 5518} |
### File: include/fast_io_legacy_impl/filebuf/fp_hack/msvc_stl.h
#pragma once
#if defined(__clang__)
#pragma GCC system_header
#endif
namespace fast_io::details::streambuf_hack
{
/*
https://github.com/microsoft/STL/blob/master/stl/inc/fstream#L775
const _Cvt* _Pcvt; // pointer to codecvt facet (may be null)
... | {"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_legacy_impl/filebuf/fp_hack/msvc_stl.h", "license": "mit", "size": 3049} |
### File: include/fast_io_legacy_impl/filebuf/op_out.h
#pragma once
/*
This provides a compatibility layer for printing custom types with existing ostream apis.
*/
namespace fast_io::details
{
template<typename char_type,typename T>
concept printable_to_cxx_ostringstream=std::integral<char_type>&&requires(std::basic... | {"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_legacy_impl/filebuf/op_out.h", "license": "mit", "size": 1308} |
### File: include/fast_io_legacy_impl/filebuf/streambuf_io_observer.h
#pragma once
#include"fp_hack/impl.h"
namespace fast_io
{
template<typename T>
#if !defined(_MSC_VER) || defined(__clang__)
requires std::derived_from<T,std::basic_streambuf<typename T::char_type,typename T::traits_type>>
#endif
class basic_gener... | {"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_legacy_impl/filebuf/streambuf_io_observer.h", "license": "mit", "size": 10297} |
### File: include/fast_io_unit/async.h
#pragma once
#include<coroutine>
namespace fast_io
{
struct task
{
struct promise_type
{
constexpr auto get_return_object() noexcept { return task{}; }
constexpr auto initial_suspend() noexcept { return std::suspend_never{}; }
constexpr auto final_suspend() noexcept { return st... | {"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_unit/async.h", "license": "mit", "size": 1337} |
### File: include/fast_io_unit/bitset.h
#pragma once
namespace fast_io
{
struct bitset_print_reserve_proxy
{
using manip_tag = manip_tag_t;
using native_storage_type =
#if defined(_LIBCPP_VERSION)
::std::size_t
#else
unsigned long
#endif
;
using native_storage_const_pointer
#if __has_cpp_attribute(__gnu__::__... | {"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_unit/bitset.h", "license": "mit", "size": 2242} |
### File: include/fast_io_unit/chrono.h
#pragma once
namespace fast_io
{
template<std::integral char_type,typename Rep,typename Period>
requires (reserve_printable<char_type,Rep>&&(std::same_as<Period,std::nano>||std::same_as<Period,std::micro>||std::same_as<Period,std::milli>||
std::same_as<Period,std::ratio<1>>||... | {"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_unit/chrono.h", "license": "mit", "size": 16691} |
### File: include/fast_io_unit/complex.h
#pragma once
namespace fast_io
{
namespace manipulators
{
template<bool uppercase=false,typename scalar_type>
requires (::fast_io::details::my_floating_point<scalar_type>)
inline constexpr auto hexfloat(std::complex<scalar_type> t) noexcept
{
if constexpr(std::same_as<std::r... | {"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_unit/complex.h", "license": "mit", "size": 23091} |
### File: include/fast_io_unit/filesystem.h
#pragma once
namespace fast_io
{
inline cross_code_cvt_t<typename std::filesystem::path::value_type> print_alias_define(io_alias_t,std::filesystem::path const& pth) noexcept
{
auto const& native{pth.native()};
return {{native.c_str(),native.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_unit/filesystem.h", "license": "mit", "size": 263} |
### File: include/fast_io_unit/floating.h
#pragma once
| {"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_unit/floating.h", "license": "mit", "size": 17} |
### File: include/fast_io_unit/floating/hexfloat.h
#pragma once
/*
Algorithm: fast_io
Author: cqwrteur
Reference: no reference
Credit: Jk jeon
*/
namespace fast_io
{
namespace details
{
template<std::uint_least32_t e2hexdigits,::std::random_access_iterator Iter>
inline constexpr Iter with_sign_prt_rsv_exponent_hex_i... | {"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_unit/floating/hexfloat.h", "license": "mit", "size": 3160} |
### File: include/fast_io_unit/floating/impl.h
#pragma once
#include"punning.h"
#include"hexfloat.h"
#include"roundtrip.h"
namespace fast_io
{
template<std::integral char_type,manipulators::scalar_flags flags,details::my_floating_point flt>
requires (flags.base==10)
inline constexpr std::size_t print_reserve_size(i... | {"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_unit/floating/impl.h", "license": "mit", "size": 4594} |
### File: include/fast_io_unit/floating/lc_hexfloat.h
#pragma once
/*
Algorithm: fast_io
Author: cqwrteur
Reference: no reference
Credit: Jk jeon
*/
namespace fast_io::details
{
template<
bool showbase,
bool showbase_uppercase,
bool showpos,
bool uppercase,
bool uppercase_e,
typename flt,::std::integral char_type>
in... | {"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_unit/floating/lc_hexfloat.h", "license": "mit", "size": 2685} |
### File: include/fast_io_unit/floating/lc_impl.h
#pragma once
#include"lc_hexfloat.h"
#include"lc_roundtrip.h"
namespace fast_io
{
namespace details
{
template<std::integral char_type,my_floating_point flt,::fast_io::manipulators::floating_format mf>
inline constexpr std::size_t lc_print_rsv_iec559_size(basic_lc_... | {"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_unit/floating/lc_impl.h", "license": "mit", "size": 5711} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.