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
version(linux): | |
extern(C++) { | |
struct elem9 { } | |
void foobar9(elem9*, elem9*); | |
static assert(foobar9.mangleof == "_Z7foobar9P5elem9S0_"); | |
} | |
extern (C++) | |
{ |
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
// g++ ~/template_test.cc -c && nm template_test.o | |
struct A {}; | |
struct B {}; | |
template<typename TC> | |
struct C { | |
TC foo(TC) {} | |
}; |
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 <algorithm> | |
#include <chrono> | |
#include <future> | |
#include <thread> | |
#include <vector> | |
using namespace std; | |
using namespace std::chrono; | |
struct StopWatch { |
NewerOlder