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 <cstdio> | |
| #include <cstdint> | |
| #include <type_traits> | |
| namespace fast | |
| { | |
| namespace detail | |
| { | |
| constexpr auto numbers = "0123456789ABCDEF"; |
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 <type_traits> | |
| #include <array> | |
| #include <iostream> | |
| template<typename first, typename... rest> | |
| constexpr auto all_same_v = std::conjunction_v<std::is_same<first, rest>...>; | |
| template <typename... Ts> | |
| constexpr auto concat_strings(Ts&&... args) { |
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 <stddef.h> // this is all we need | |
| namespace reg_wrapper | |
| { | |
| namespace detail | |
| { | |
| template <class T, T v> | |
| struct integral_constant | |
| { |
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
| struct ProcessInfo { | |
| HANDLE handle; | |
| HMODULE baseAddress; | |
| }; | |
| ProcessInfo FindProcessHandle(const TCHAR* targetProcName) | |
| { | |
| DWORD aProcesses[1024], bytesNeeded; |
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 <string> | |
| std::string LongestSubSeq(std::string s1, std::string s2) | |
| { | |
| // space complexity O(2 *LengthOfLongestString) | |
| // time Complexity O(s1Length*s2Length) | |
| size_t Len = s1.length() > s2.length() ? s1.length() : s2.length(); | |
| std::string result,temp; | |
| result.reserve(Len); | |
| temp.reserve(Len); |