NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
类型擦除

容器和数组的通用访问函数 更多...

函数

template<typename Container>
constexpr decltype(auto) neforce::begin (Container &cont) noexcept(noexcept(cont.begin()))
 获取容器的起始迭代器
template<typename Container>
constexpr decltype(auto) neforce::end (Container &cont) noexcept(noexcept(cont.end()))
 获取容器的结束迭代器
template<typename Container>
constexpr decltype(auto) neforce::begin (const Container &cont) noexcept(noexcept(cont.begin()))
 获取const容器的起始迭代器
template<typename Container>
constexpr decltype(auto) neforce::end (const Container &cont) noexcept(noexcept(cont.end()))
 获取const容器的结束迭代器
template<typename T, size_t Size>
constexpr T * neforce::begin (T(&arr)[Size]) noexcept
 获取数组的起始指针
template<typename T, size_t Size>
constexpr T * neforce::end (T(&arr)[Size]) noexcept
 获取数组的结束指针
template<typename Container>
constexpr decltype(auto) neforce::cbegin (const Container &cont) noexcept(noexcept(cont.cbegin()))
 获取const容器的const起始迭代器
template<typename Container>
constexpr decltype(auto) neforce::cend (const Container &cont) noexcept(noexcept(cont.cend()))
 获取const容器的const结束迭代器
template<typename T, size_t Size>
constexpr const T * neforce::cbegin (T(&arr)[Size]) noexcept
 获取const数组的const起始指针
template<typename T, size_t Size>
constexpr const T * neforce::cend (T(&arr)[Size]) noexcept
 获取const数组的const结束指针
template<typename Container>
constexpr decltype(auto) neforce::rbegin (Container &cont) noexcept(noexcept(cont.rbegin()))
 获取容器的反向起始迭代器
template<typename Container>
constexpr decltype(auto) neforce::rend (Container &cont) noexcept(noexcept(cont.rend()))
 获取const容器的反向起始迭代器
template<typename Container>
constexpr decltype(auto) neforce::rbegin (const Container &cont) noexcept(noexcept(cont.rbegin()))
 获取容器的反向结束迭代器
template<typename Container>
constexpr decltype(auto) neforce::rend (const Container &cont) noexcept(noexcept(cont.rend()))
 获取const容器的反向结束迭代器
template<typename T, size_t Size>
constexpr reverse_iterator< T * > neforce::rbegin (T(&arr)[Size]) noexcept
 获取数组的反向起始迭代器
template<typename T, size_t Size>
constexpr reverse_iterator< T * > neforce::rend (T(&arr)[Size]) noexcept
 获取数组的反向结束迭代器
template<typename T>
constexpr reverse_iterator< const T * > neforce::rbegin (std::initializer_list< T > lls) noexcept
 获取初始化列表的反向起始迭代器
template<typename T>
constexpr reverse_iterator< const T * > neforce::rend (std::initializer_list< T > lls) noexcept
 获取初始化列表的反向结束迭代器
template<typename Container>
constexpr decltype(auto) neforce::crbegin (const Container &cont) noexcept(noexcept(cont.crbegin()))
 获取const容器的const反向起始迭代器
template<typename Container>
constexpr decltype(auto) neforce::crend (const Container &cont) noexcept(noexcept(cont.crend()))
 获取const容器的const反向结束迭代器
template<typename T, size_t Size>
constexpr reverse_iterator< const T * > neforce::crbegin (T(&arr)[Size]) noexcept
 获取const数组的const反向起始迭代器
template<typename T, size_t Size>
constexpr reverse_iterator< const T * > neforce::crend (T(&arr)[Size]) noexcept
 获取const数组的const反向结束迭代器
template<typename Container>
constexpr decltype(auto) neforce::size (const Container &cont) noexcept(noexcept(cont.size()))
 获取容器的大小
template<typename T, size_t Size>
constexpr size_t neforce::size (T(&arr)[Size]) noexcept
 获取数组的大小
template<typename T>
constexpr size_t neforce::size (std::initializer_list< T > lls) noexcept
 获取初始化列表的大小
template<typename Container>
constexpr decltype(auto) neforce::ssize (const Container &cont) noexcept(noexcept(cont.size()))
 获取容器的有符号大小
template<typename T, size_t Size>
constexpr ptrdiff_t neforce::ssize (T(&arr)[Size]) noexcept
 获取数组的有符号大小
template<typename T>
constexpr ptrdiff_t neforce::ssize (std::initializer_list< T > lls) noexcept
 获取初始化列表的有符号大小
template<typename Container>
constexpr bool neforce::empty (const Container &cont) noexcept(noexcept(cont.empty()))
 检查容器是否为空
template<typename T>
constexpr bool neforce::empty (const T *ptr) noexcept
 检查指针是否非空
template<typename T>
constexpr bool neforce::empty (std::initializer_list< T > lls) noexcept
 检查初始化列表是否为空
template<typename Container>
constexpr decltype(auto) neforce::data (Container &cont) noexcept(noexcept(cont.data()))
 获取容器的底层数据指针
template<typename Container>
constexpr decltype(auto) neforce::data (const Container &cont) noexcept(noexcept(cont.data()))
 获取const容器的const底层数据指针
template<typename T, size_t Size>
constexpr T * neforce::data (T(&arr)[Size]) noexcept
 获取数组的底层数据指针
template<typename T>
constexpr T * neforce::data (T *ptr) noexcept
 获取指针本身
template<typename T>
constexpr const T * neforce::data (std::initializer_list< T > lls) noexcept
 获取初始化列表的底层数据指针

详细描述

容器和数组的通用访问函数

函数说明

◆ begin() [1/3]

template<typename Container>
decltype(auto) neforce::begin ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的起始迭代器

模板参数
Container容器类型
参数
contconst容器引用
返回
const容器的起始迭代器

在文件 type_erase.hpp53 行定义.

引用了 begin().

◆ begin() [2/3]

template<typename Container>
decltype(auto) neforce::begin ( Container & cont)
inlinenodiscardconstexprnoexcept

获取容器的起始迭代器

模板参数
Container容器类型
参数
cont容器引用
返回
容器的起始迭代器

在文件 type_erase.hpp30 行定义.

引用了 begin().

被这些函数引用 begin(), begin(), begin(), neforce::lz4_compressor::compress(), neforce::zlib_compressor::compress(), neforce::lz4_compressor::decompress(), neforce::zlib_compressor::decompress() , 以及 neforce::tui::linear_gradient::linear_gradient().

◆ begin() [3/3]

template<typename T, size_t Size>
T * neforce::begin ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取数组的起始指针

模板参数
T数组元素类型
Size数组大小
参数
arr数组引用
返回
指向数组首元素的指针

在文件 type_erase.hpp77 行定义.

引用了 begin().

◆ cbegin() [1/2]

template<typename Container>
decltype(auto) neforce::cbegin ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的const起始迭代器

模板参数
Container容器类型
参数
contconst容器引用
返回
const容器的const起始迭代器

在文件 type_erase.hpp102 行定义.

引用了 cbegin().

被这些函数引用 cbegin() , 以及 cbegin().

◆ cbegin() [2/2]

template<typename T, size_t Size>
const T * neforce::cbegin ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取const数组的const起始指针

模板参数
T数组元素类型
Size数组大小
参数
arrconst数组引用
返回
指向数组首元素的const指针

在文件 type_erase.hpp126 行定义.

引用了 cbegin().

◆ cend() [1/2]

template<typename Container>
decltype(auto) neforce::cend ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的const结束迭代器

模板参数
Container容器类型
参数
contconst容器引用
返回
const容器的const结束迭代器

在文件 type_erase.hpp114 行定义.

引用了 cend().

被这些函数引用 cend() , 以及 cend().

◆ cend() [2/2]

template<typename T, size_t Size>
const T * neforce::cend ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取const数组的const结束指针

模板参数
T数组元素类型
Size数组大小
参数
arrconst数组引用
返回
指向数组末尾的const指针
注解
末尾指针是最后一个元素之后的位置

在文件 type_erase.hpp139 行定义.

引用了 cend().

◆ crbegin() [1/2]

template<typename Container>
decltype(auto) neforce::crbegin ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的const反向起始迭代器

模板参数
Container容器类型
参数
contconst容器引用
返回
const容器的const反向起始迭代器

在文件 type_erase.hpp244 行定义.

引用了 crbegin().

被这些函数引用 crbegin() , 以及 crbegin().

◆ crbegin() [2/2]

template<typename T, size_t Size>
reverse_iterator< const T * > neforce::crbegin ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取const数组的const反向起始迭代器

模板参数
T数组元素类型
Size数组大小
参数
arrconst数组引用
返回
const数组的const反向起始迭代器

在文件 type_erase.hpp268 行定义.

引用了 crbegin().

◆ crend() [1/2]

template<typename Container>
decltype(auto) neforce::crend ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的const反向结束迭代器

模板参数
Container容器类型
参数
contconst容器引用
返回
const容器的const反向结束迭代器

在文件 type_erase.hpp256 行定义.

引用了 crend().

被这些函数引用 crend() , 以及 crend().

◆ crend() [2/2]

template<typename T, size_t Size>
reverse_iterator< const T * > neforce::crend ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取const数组的const反向结束迭代器

模板参数
T数组元素类型
Size数组大小
参数
arrconst数组引用
返回
const数组的const反向结束迭代器

在文件 type_erase.hpp280 行定义.

引用了 crend().

◆ data() [1/5]

template<typename Container>
decltype(auto) neforce::data ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的const底层数据指针

模板参数
Container容器类型
参数
contconst容器引用
返回
指向const容器底层数据的const指针

在文件 type_erase.hpp407 行定义.

引用了 data().

◆ data() [2/5]

template<typename Container>
decltype(auto) neforce::data ( Container & cont)
inlinenodiscardconstexprnoexcept

获取容器的底层数据指针

模板参数
Container容器类型
参数
cont容器引用
返回
指向容器底层数据的指针

在文件 type_erase.hpp395 行定义.

引用了 data().

被这些函数引用 neforce::array_iterator< false, Size, array >::advance(), neforce::basic_string_iterator< false, basic_string >::advance(), aes256_encrypt(), neforce::buffer_chain::append(), neforce::udp_socket::async_send_to(), neforce::udp_socket::async_send_to(), neforce::udp_socket::async_send_to(), neforce::udp_socket::async_send_to(), neforce::udp_socket::async_send_to(), neforce::udp_socket::async_send_to(), async_write(), neforce::file_async::async_write(), neforce::file_async::async_write(), neforce::file_async::async_write(), neforce::atomic_futex< WaiterBit >::atomic_futex(), base64_decode(), base64_decode(), base64_decode(), base64_encode(), base64_encode(), base64_encode(), neforce::basic_string_view_iterator< Traits >::basic_string_view_iterator(), neforce::http::websocket_server::broadcast(), neforce::tui::input_driver::check_resize_flag(), neforce::lz4_compressor::compress(), neforce::lz4_compressor::compress(), neforce::lz4_compressor::compress(), neforce::lz4_compressor::stream_compressor::compress(), neforce::lz4_compressor::stream_compressor::compress(), neforce::zlib_compressor::compress(), neforce::zlib_compressor::compress(), neforce::zlib_compressor::compress(), neforce::zlib_compressor::stream_compressor::compress(), neforce::zlib_compressor::stream_compressor::compress(), data(), data(), data(), data(), data(), neforce::base64::decode(), neforce::http::grpc_framer::decode(), neforce::base64::decode_url(), neforce::codepoint::decode_utf16(), neforce::codepoint::decode_utf8(), neforce::lz4_compressor::decompress(), neforce::lz4_compressor::decompress(), neforce::lz4_compressor::stream_decompressor::decompress(), neforce::zlib_compressor::decompress(), neforce::zlib_compressor::decompress(), neforce::zlib_compressor::stream_decompressor::decompress(), neforce::chacha20_poly1305::decrypt(), neforce::XOR::decrypt(), neforce::AES256::decrypt_cbc(), neforce::AES256::decrypt_cbc_pkcs7(), neforce::AES256::decrypt_ecb(), neforce::AES256::decrypt_ecb_pkcs7(), neforce::AES256::decrypt_gcm(), neforce::array_iterator< false, Size, array >::dereference(), neforce::basic_string_iterator< false, basic_string >::dereference(), neforce::serialize::binary_serializer::deserialize(), neforce::base64::encode(), neforce::base64::encode_url(), neforce::chacha20_poly1305::encrypt(), neforce::XOR::encrypt(), neforce::AES256::encrypt_cbc(), neforce::AES256::encrypt_cbc_pkcs7(), neforce::AES256::encrypt_ecb(), neforce::AES256::encrypt_ecb_hex(), neforce::AES256::encrypt_ecb_pkcs7(), neforce::AES256::encrypt_gcm(), getline(), getline(), getline(), getline(), getline(), getline(), neforce::http::http2_connection::handle_upgrade_request(), neforce::MD5::hash(), neforce::SHA1::hash(), neforce::SHA256::hash(), neforce::MD5::hash_hex(), neforce::SHA1::hash_hex(), neforce::SHA256::hash_hex(), neforce::array_iterator< false, Size, array >::increment(), neforce::basic_string_iterator< false, basic_string >::increment(), md5(), md5(), md5(), md5(), memory_find_pattern(), neforce::icmp_socket::ping(), neforce::http::websocket_deflate::process(), neforce::endian::read_be16(), neforce::endian::read_be24(), neforce::endian::read_be32(), neforce::endian::read_be64(), neforce::endian::read_le16(), neforce::endian::read_le32(), neforce::endian::read_le64(), neforce::http::websocket_deflate::reset_context(), neforce::http::websocket_session::send(), neforce::ssl_socket::send(), neforce::tcp_client_base::send(), neforce::tcp_client_base::send(), neforce::tcp_socket::send(), neforce::tcp_socket::send(), neforce::udp_socket::send(), neforce::tcp_client_base::send_all(), neforce::tcp_client_base::send_all(), neforce::tcp_socket::send_all(), neforce::http::websocket_session::send_binary(), neforce::udp_socket::send_to(), neforce::registry_key::set_binary_value(), neforce::process::set_stdin_data(), sha1(), sha1(), sha1(), sha1(), sha256(), sha256(), sha256(), sha256(), neforce::ssl_exception::ssl_exception(), neforce::ssl_exception::ssl_exception(), neforce::tui::table::table(), neforce::tui::table::table(), neforce::u8character::to_string(), neforce::character::to_u16string(), neforce::u8character::to_u16string(), neforce::character::to_u32string(), neforce::u8character::to_u32string(), neforce::character::to_u8string(), neforce::character::to_wstring(), neforce::u8character::to_wstring(), neforce::utf8_iterator::utf8_iterator(), neforce::file::write(), neforce::file::write(), neforce::file::write(), neforce::named_pipe::write(), neforce::pipe::write(), neforce::ssl_stream::write_all(), neforce::process::write_stdin(), XOR_decrypt(), XOR_decrypt(), XOR_decrypt(), XOR_encrypt(), XOR_encrypt(), XOR_encrypt(), XXH3_64() , 以及 neforce::yaml_timestamp::yaml_timestamp().

◆ data() [3/5]

template<typename T>
const T * neforce::data ( std::initializer_list< T > lls)
inlinenodiscardconstexprnoexcept

获取初始化列表的底层数据指针

模板参数
T元素类型
参数
lls初始化列表
返回
指向初始化列表数据的const指针

在文件 type_erase.hpp441 行定义.

引用了 data().

◆ data() [4/5]

template<typename T>
T * neforce::data ( T * ptr)
inlinenodiscardconstexprnoexcept

获取指针本身

模板参数
T指针指向的类型
参数
ptr指针
返回
原指针

在文件 type_erase.hpp430 行定义.

引用了 data().

◆ data() [5/5]

template<typename T, size_t Size>
T * neforce::data ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取数组的底层数据指针

模板参数
T数组元素类型
Size数组大小
参数
arr数组引用
返回
指向数组首元素的指针

在文件 type_erase.hpp419 行定义.

引用了 data().

◆ empty() [1/3]

template<typename Container>
bool neforce::empty ( const Container & cont)
inlinenodiscardconstexprnoexcept

检查容器是否为空

模板参数
Container容器类型
参数
contconst容器引用
返回
如果容器为空则返回true,否则返回false

在文件 type_erase.hpp362 行定义.

引用了 empty().

被这些函数引用 empty(), empty(), empty(), neforce::http::http_client_response::headers_all(), neforce::function< Res(Args...)>::operator bool() , 以及 neforce::function< Res(Args...)>::operator()().

◆ empty() [2/3]

template<typename T>
bool neforce::empty ( const T * ptr)
inlinenodiscardconstexprnoexcept

检查指针是否非空

模板参数
T指针指向的类型
参数
ptr指针
返回
如果指针非空则返回true,否则返回false

在文件 type_erase.hpp373 行定义.

引用了 empty().

◆ empty() [3/3]

template<typename T>
bool neforce::empty ( std::initializer_list< T > lls)
inlinenodiscardconstexprnoexcept

检查初始化列表是否为空

模板参数
T元素类型
参数
lls初始化列表
返回
如果初始化列表为空则返回true,否则返回false

在文件 type_erase.hpp384 行定义.

引用了 empty().

◆ end() [1/3]

template<typename Container>
decltype(auto) neforce::end ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的结束迭代器

模板参数
Container容器类型
参数
contconst容器引用
返回
const容器的结束迭代器

在文件 type_erase.hpp65 行定义.

引用了 end().

◆ end() [2/3]

◆ end() [3/3]

template<typename T, size_t Size>
T * neforce::end ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取数组的结束指针

模板参数
T数组元素类型
Size数组大小
参数
arr数组引用
返回
指向数组末尾的指针
注解
末尾指针是最后一个元素之后的位置

在文件 type_erase.hpp90 行定义.

引用了 end().

◆ rbegin() [1/4]

template<typename Container>
decltype(auto) neforce::rbegin ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取容器的反向结束迭代器

模板参数
Container容器类型
参数
cont容器引用
返回
容器的反向结束迭代器

在文件 type_erase.hpp174 行定义.

引用了 rbegin().

◆ rbegin() [2/4]

template<typename Container>
decltype(auto) neforce::rbegin ( Container & cont)
inlinenodiscardconstexprnoexcept

获取容器的反向起始迭代器

模板参数
Container容器类型
参数
cont容器引用
返回
容器的反向起始迭代器

在文件 type_erase.hpp151 行定义.

引用了 rbegin().

被这些函数引用 rbegin(), rbegin(), rbegin() , 以及 rbegin().

◆ rbegin() [3/4]

template<typename T>
reverse_iterator< const T * > neforce::rbegin ( std::initializer_list< T > lls)
nodiscardconstexprnoexcept

获取初始化列表的反向起始迭代器

模板参数
T元素类型
参数
lls初始化列表
返回
初始化列表的反向起始迭代器

在文件 type_erase.hpp221 行定义.

引用了 rbegin().

◆ rbegin() [4/4]

template<typename T, size_t Size>
reverse_iterator< T * > neforce::rbegin ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取数组的反向起始迭代器

模板参数
T数组元素类型
Size数组大小
参数
arr数组引用
返回
数组的反向起始迭代器

在文件 type_erase.hpp198 行定义.

引用了 rbegin().

◆ rend() [1/4]

template<typename Container>
decltype(auto) neforce::rend ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的反向结束迭代器

模板参数
Container容器类型
参数
contconst容器引用
返回
const容器的反向结束迭代器

在文件 type_erase.hpp186 行定义.

引用了 rend().

◆ rend() [2/4]

template<typename Container>
decltype(auto) neforce::rend ( Container & cont)
inlinenodiscardconstexprnoexcept

获取const容器的反向起始迭代器

模板参数
Container容器类型
参数
contconst容器引用
返回
const容器的反向起始迭代器

在文件 type_erase.hpp162 行定义.

引用了 rend().

被这些函数引用 rend(), rend(), rend() , 以及 rend().

◆ rend() [3/4]

template<typename T>
reverse_iterator< const T * > neforce::rend ( std::initializer_list< T > lls)
nodiscardconstexprnoexcept

获取初始化列表的反向结束迭代器

模板参数
T元素类型
参数
lls初始化列表
返回
初始化列表的反向结束迭代器

在文件 type_erase.hpp232 行定义.

引用了 rend().

◆ rend() [4/4]

template<typename T, size_t Size>
reverse_iterator< T * > neforce::rend ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取数组的反向结束迭代器

模板参数
T数组元素类型
Size数组大小
参数
arr数组引用
返回
数组的反向结束迭代器

在文件 type_erase.hpp210 行定义.

引用了 rend().

◆ size() [1/3]

template<typename Container>
decltype(auto) neforce::size ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取容器的大小

模板参数
Container容器类型
参数
contconst容器引用
返回
容器中元素的数量

在文件 type_erase.hpp292 行定义.

引用了 size().

被这些函数引用 neforce::buffer_chain::append(), neforce::reflect::type_builder< T >::as_associative_container(), neforce::reflect::type_builder< T >::as_sequential_container(), neforce::file_async::async_read(), neforce::file_async::async_read(), neforce::file_async::async_read(), async_write(), neforce::file_async::async_write(), neforce::file_async::async_write(), neforce::file_async::async_write(), neforce::basic_string_view_iterator< Traits >::basic_string_view_iterator(), neforce::sparse_vector_iterator< false, sparse_vector >::dereference(), neforce::serialize::binary_serializer::deserialize(), neforce::env_parser::env_parser(), neforce::tui::gauge_direction(), neforce::sparse_vector_iterator< false, sparse_vector >::increment(), neforce::ini_parser::ini_parser(), make_leonardo_heap(), make_shared(), neforce::this_thread::name(), neforce::thread::name(), neforce::thread::name(), pop_leonardo_heap(), push_leonardo_heap(), neforce::named_pipe::read(), neforce::pipe::read(), neforce::ssl_stream::read(), neforce::registry_key::set_binary_value(), neforce::socket_base::set_receive_buffer_size(), neforce::socket_base::set_send_buffer_size(), neforce::ssl_context::set_session_cache_size(), size(), size(), size(), snprintf(), sort_leonardo_heap(), tim_sort(), neforce::toml_parser::toml_parser(), vsnprintf(), neforce::named_pipe::write(), neforce::pipe::write(), neforce::ssl_stream::write(), neforce::ssl_stream::write_all() , 以及 neforce::yaml_parser::yaml_parser().

◆ size() [2/3]

template<typename T>
size_t neforce::size ( std::initializer_list< T > lls)
inlinenodiscardconstexprnoexcept

获取初始化列表的大小

模板参数
T元素类型
参数
lls初始化列表
返回
初始化列表的大小

在文件 type_erase.hpp315 行定义.

引用了 size().

◆ size() [3/3]

template<typename T, size_t Size>
size_t neforce::size ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取数组的大小

模板参数
T数组元素类型
Size数组大小
参数
arr数组引用
返回
数组的大小

在文件 type_erase.hpp304 行定义.

引用了 size().

◆ ssize() [1/3]

template<typename Container>
decltype(auto) neforce::ssize ( const Container & cont)
inlinenodiscardconstexprnoexcept

获取容器的有符号大小

模板参数
Container容器类型
参数
contconst容器引用
返回
容器中元素的数量

在文件 type_erase.hpp327 行定义.

引用了 ssize().

被这些函数引用 ssize(), ssize() , 以及 ssize().

◆ ssize() [2/3]

template<typename T>
ptrdiff_t neforce::ssize ( std::initializer_list< T > lls)
inlinenodiscardconstexprnoexcept

获取初始化列表的有符号大小

模板参数
T元素类型
参数
lls初始化列表
返回
初始化列表的大小

在文件 type_erase.hpp351 行定义.

引用了 ssize().

◆ ssize() [3/3]

template<typename T, size_t Size>
ptrdiff_t neforce::ssize ( T(&) arr[Size])
inlinenodiscardconstexprnoexcept

获取数组的有符号大小

模板参数
T数组元素类型
Size数组大小
参数
arr数组引用
返回
数组的大小

在文件 type_erase.hpp340 行定义.

引用了 ssize().