Skip to content

FCWYzzr/f-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

F-Lib

F-Lib是一个Module-Only的STL拓展 & 别名库

非功能性拓展

  • 注入std::views和std::pmr命名空间

功能性拓展

  • container

    • string_pool: 线程安全的字符串池。
    • any: 支持移动的std::any。
    • string_hasher: 字符串透明哈希
  • exception

    • exception: 使用格式化构造std::runtime_error
  • memory

    • size_based_memory_resource: 分流的内存池资源
    • polymorphic_dynamic_deleter: 支持pmr和动态多态的deleter。
    • unique_ptr: 使用polymorphic_dynamic_deleter的unique_ptr
    • make_unique / unique_upcast: 提供了与std::pmr兼容的make_unique函数和多态上转型的unique_ptr转换功能。
  • rtt (runtime type)

    • method_not_implemented: 当类型不支持请求的方法时抛出的异常。
    • type_t: 存储类型在运行时的常见行为(默认构造、复制构造、移动构造、析构、复制赋值、移动赋值)。可以转换成std::type_index,支持透明哈希。
    • is_instance: 检查对象是否是指定类型。
    • as: 将对象转换为指定类型,保留const和指针修饰

About

一个Module-Only的现代C++STL拓展 & 别名库

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published