This file contains 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 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 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 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 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 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 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 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 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 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