Commit Graph

230 Commits

Author SHA1 Message Date
_Redstone_c_ 9a3c957b38 refactor(templates): add sizeof...(Ts) > 0 constraint to TVariant 2022-11-17 18:48:20 +08:00
_Redstone_c_ 3f56a2beca style(*): enclose the requires expression in parentheses as required by GCC 2022-11-16 22:03:54 +08:00
_Redstone_c_ d37eee0d23 style(*): replaces Types... in the template parameters with Ts... 2022-11-16 19:13:37 +08:00
_Redstone_c_ f347132725 fix(templates): fix compile error in TReferenceWrapper constructor 2022-11-15 22:15:10 +08:00
_Redstone_c_ 391670adb7 feat(templates): remove AsConst for array 2022-11-15 21:02:29 +08:00
_Redstone_c_ af07b1a134 refactor(templates): enhance encapsulation by changing part of the struct to a class 2022-11-15 19:28:43 +08:00
_Redstone_c_ 226f5a34e9 feat(templates): add CAnyCustomStorage for TAny 2022-11-14 21:07:45 +08:00
_Redstone_c_ 9ff3b1c583 refactor(templates): optimize TAny and TFunction and fix TFunction alignment problem 2022-11-14 19:05:17 +08:00
_Redstone_c_ 096150a305 fix(templates): fix TAny's constraints and simplify naming 2022-06-21 23:31:46 +08:00
_Redstone_c_ f1d4d99ecf refactor(*): replaces template class type traits with C++20 at all 2022-06-16 23:37:29 +08:00
_Redstone_c_ 8e31a82a1f fix(memory): fix compile error when memory constructs such as Memory::CopyConstruct for cv qualifiers type 2022-06-05 22:52:55 +08:00
_Redstone_c_ 8b902d15a4 refactor(typetraits): replaces template class type traits with alias template for TypeTraits/Common.h 2022-05-29 23:18:20 +08:00
_Redstone_c_ c6620da1dd refactor(typetraits): replaces template class type traits with alias template for TypeTraits/CopyQualifiers.h 2022-05-22 23:19:30 +08:00
_Redstone_c_ 4205a23310 refactor(typetraits): replaces template class type traits with alias template for TypeTraits/Invocable.h 2022-05-22 23:05:11 +08:00
_Redstone_c_ 2ce259e7cc refactor(typetraits): replaces template class type traits with alias template for TypeTraits/Miscellaneous.h 2022-05-22 22:52:47 +08:00
_Redstone_c_ 97910be70c refactor(typetraits): simplifies concept selection and removes the concept of bitwise operations 2022-05-22 22:36:49 +08:00
_Redstone_c_ ee46d84897 refactor(typetraits): replaces template class type traits with concepts at all 2022-05-22 22:36:30 +08:00
_Redstone_c_ 6a5a101af4 refactor(typetraits): replaces template class type traits with concepts for TypeTraits/Miscellaneous.h 2022-05-22 22:36:15 +08:00
_Redstone_c_ 413762a90a refactor(typetraits): replaces template class type traits with concepts for TypeTraits/SupportedOperations.h 2022-05-22 22:36:04 +08:00
_Redstone_c_ c316b8f190 refactor(typetraits): replaces template class type traits with concepts for TypeTraits/TypeProperties.h 2022-05-22 22:35:27 +08:00
_Redstone_c_ 22fe906eda refactor(typetraits): replaces template class type traits with concepts for TypeTraits/CompositeType.h 2022-05-22 22:35:11 +08:00
_Redstone_c_ 1dcd3dc3b3 refactor(typetraits): replaces template class type traits with concepts for TypeTraits/PrimaryType.h 2022-05-22 22:34:43 +08:00
_Redstone_c_ 5d1f622af8 refactor(typetraits): TIsDestructible use Cpp17Destructible requirements instead of std::is_destructible 2022-05-22 22:33:45 +08:00
_Redstone_c_ 13e3b49118 refactor(templates): TFunction replaces using type aliases with derived classes 2022-05-14 22:52:21 +08:00
_Redstone_c_ eeef55e9b4 refactor(*): remove FTypeInfo and replace it with the native std::type_info 2022-05-12 23:36:32 +08:00
_Redstone_c_ db5ed179c6 refactor(templates): add template class specialization TOptional<TReferenceWrapper<T>> 2022-05-03 22:20:08 +08:00
_Redstone_c_ 522c71f2b6 refactor(templates): optimize the implementation of TOptional and TVariant 2022-05-03 18:22:41 +08:00
_Redstone_c_ a737eea487 refactor(templates): disable TFunctionRef to bind r-valued callable 2022-05-01 18:02:26 +08:00
_Redstone_c_ eb814e37d3 refactor(templates): optimize TAny implementation, increase inline storage size 2022-04-30 23:38:09 +08:00
_Redstone_c_ 59d3a9eac2 feat(miscellaneous): add type traits and memory operations support to FTypeInfo 2022-04-30 23:03:29 +08:00
_Redstone_c_ c2c4a03974 feat(memory): add CopyConstruct and the Count parameter uses the size_t 2022-04-30 21:33:18 +08:00
_Redstone_c_ 7aadebba70 refactor(miscellaneous): replace TSynthThreeWay with the function version 2022-04-30 19:27:25 +08:00
_Redstone_c_ 38902eb779 fix(typetraits): fix implementation of TIsScopedEnum TIsSwappable and TIsBitwiseConstructible 2022-04-30 19:25:17 +08:00
_Redstone_c_ d634fc3cf8 fix(templates): fix TOptional constraints and implementation 2022-04-27 23:22:52 +08:00
_Redstone_c_ 494928aa6b refactor(*): add check and constraint diagnostics for illegal alignment 2022-04-27 22:50:56 +08:00
_Redstone_c_ 897ee4f283 fix(miscellaneous): fix misbehavior of assertions under some build types 2022-04-26 23:04:50 +08:00
_Redstone_c_ 099cba38f4 refactor(templates): simplify TTuple implementation 2022-04-25 23:04:19 +08:00
_Redstone_c_ 1dd42be86a feat(miscellaneous): add fixed-length floating-point support 2022-04-25 22:33:55 +08:00
_Redstone_c_ 0ce3d9055b refactor(templates): block direct access to element 16 of TTuple 2022-04-24 23:11:00 +08:00
_Redstone_c_ ff59698fdc feat(templates): add Ref helper function for TReferenceWrapper 2022-04-24 23:08:00 +08:00
_Redstone_c_ f72d6a53d8 refactor(templates): remove the predefined functors, Lambda is a better choice 2022-04-24 22:54:08 +08:00
_Redstone_c_ c2eca8df1e refactor(templates): remove the GetData function from the non-container class 2022-04-24 22:42:40 +08:00
_Redstone_c_ b3a97cfe21 refactor(memory): make the Align function use the maximum integer uint64 2022-04-24 22:16:56 +08:00
_Redstone_c_ 6b63436d41 refactor(templates): remove TAtomic::IsLockFree function 2022-04-22 22:33:23 +08:00
_Redstone_c_ 04d713cd93 refactor(templates): refactor GetTypeHash into a member function 2022-04-22 22:28:44 +08:00
_Redstone_c_ 63b63ef0b4 chore(*): add Development build type to allow debugging in optimization-enabled mode 2022-04-20 23:38:29 +08:00
_Redstone_c_ ecbf6480ac refactor(templates): fix the return value derivation of GetData and GetNum 2022-04-19 22:53:23 +08:00
_Redstone_c_ 018d3afb73 refactor(templates): refactor Swap into a member function 2022-04-14 22:41:22 +08:00
_Redstone_c_ 5c82ab1e0d refactor(templates): refining TOptional's constraints 2022-04-13 22:35:30 +08:00
_Redstone_c_ 4f769a9207 feat(templates): add TAtomic and the corresponding testing 2022-04-12 08:33:19 +08:00