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
main begin | |
1: device() | |
device foo! | |
2: device foo! | |
3: device foo! | |
~device() | |
4: invalid instance. | |
5: device() | |
6: device foo! | |
7: beacon() |
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
0: foo() shared f() ~foo() | |
1: foo(1234) shared f() ~foo() | |
2: foo(456) shared custom_deleter f() ~foo() | |
3: foo(789) shared custom_full f() ~foo() | |
4: foo() unique f() ~foo() | |
5: foo(bar) unique f() ~foo() | |
6: *** error *** | |
7: foo(42) unique custom_deleter f() ~foo() |
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
msys/winpty-git 1~0.2.2.365.79c9859-1 | |
A Windows software package providing an interface similar to a Unix | |
pty-master for communicating with Windows console programs |
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 <iomanip> | |
#include <memory> | |
#include <array> | |
#include <cmath> | |
// ニューロン(マッチ箱+お菓子) | |
class Neuron | |
{ | |
public: |
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 <memory> | |
class IFoo | |
{ | |
public: | |
virtual ~IFoo() {} | |
virtual int f() = 0; | |
}; |
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 <locale> | |
#include <codecvt> | |
int main() | |
{ | |
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> converter; | |
std::string u8str = u8"abcdeあいうえお🗿"; |
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 <sstream> | |
#include <string> | |
#include <locale> | |
#include <codecvt> | |
using w32stringstream = std::basic_stringstream<char32_t>; | |
int main() | |
{ |
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 <type_traits> | |
struct has_value_impl { | |
template <class T, class U = decltype(T::value)> | |
constexpr static std::is_same<U, int> test_variable(int); | |
template <typename...> | |
constexpr static std::false_type test_variable(...); | |
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 <type_traits> | |
#if (__cplusplus > 201402L) | |
using std::void_t; | |
using std::bool_constant; | |
using std::negation; | |
using std::conjunction; | |
using std::conjunction_v; |
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> | |
// impl ---------- | |
#if (__cplusplus > 201402L) | |
using std::void_t; | |
#else |
OlderNewer