This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <memory> | |
| #include <utility> | |
| #include <typeinfo> | |
| #include <typeindex> | |
| #include <unordered_map> | |
| template<typename Ty, typename KeyTy = std::type_index, typename ValTy = std::unique_ptr<Ty>> | |
| class reflection_manager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <any> | |
| #include <utility> | |
| #include <typeinfo> | |
| #include <typeindex> | |
| #include <unordered_map> | |
| class type_map | |
| { | |
| public: | |
| using This = type_map; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| #include <tuple> | |
| using namespace std; | |
| namespace group_compare | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| #include <regex> | |
| using namespace std; | |
| int main() | |
| { | |
| regex rg { "^([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})$" }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //////////////////////////////////////////////////////////////////////////////////// | |
| // Get Files | |
| //////////////////////////////////////////////////////////////////////////////////// | |
| // summary : ํ์ผ ๊ฒฝ๋ก์ ๋ชฉ๋ก์ vector ํ์์ผ๋ก ๋ฐํํฉ๋๋ค. | |
| // remark : ํ์ ๋ชฉ๋ก์ด๋ผ๊ณ ๋ณ๋์ ๋ชฉ๋ก์ ๋ด๊ธฐ์ง ์์ต๋๋ค. | |
| // author : @Lusain_Kim | |
| //////////////////////////////////////////////////////////////////////////////////// | |
| // ์ ๋์ฝ๋ ์ ์ฉ ์ํ ์ฝ๋ | |
| #ifndef UNICODE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <array> | |
| using namespace std; | |
| template<typename Ty, typename... Args> | |
| constexpr auto BuildArray(Args&&... args) noexcept { return array<Ty, sizeof...(args)>{ args... }; } | |
| template <typename Ty, size_t N> using TyArr = Ty[N]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| using namespace std; | |
| struct Data | |
| { | |
| char name[20]; | |
| int dummy; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef __FIXVALUE__ | |
| #define __FIXVALUE__ | |
| #include <string> | |
| #ifdef UNICODE | |
| using FixValueString = std::wstring; | |
| #define to_FixValueString std::to_wstring | |
| #else | |
| using FixValueString = std::string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root = true | |
| [*] | |
| indent_style = tab | |
| indent_size = 4 | |
| [*.{c,cpp,h,hpp}] | |
| charset = utf-8 | |
| indent_style = tab | |
| indent_size = 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| namespace EnumFunc { | |
| template<typename Enum> // Enum class์ ์ ์ธํ์ ์๋ ค์ฃผ์ด ์ธ์์ ๋์ํ๋ ๊ฐ์ ๋ฐํํ๋ ํจ์์ ๋๋ค. | |
| inline constexpr auto GetEnumValueByType(Enum enumerator) noexcept // enum class E : int { a,b,c }; ์ผ ๋, | |
| { // auto data = GetEnumValueByType(E::a); | |
| return static_cast<std::underlying_type_t<Enum>>(enumerator); // data์ ํ์์ int ์ด๊ณ , ๊ฐ์ 0 ์ ๋๋ค. | |
| } |
NewerOlder