Skip to content

Instantly share code, notes, and snippets.

#include <cstdio>
#include <cstring>
#include <iostream>
#include <type_traits>
using namespace std;
enum { sz = 8 };
int main() {
cout << alignment_of<int>::value << endl;
\documentclass{article}
\begin{document}
\tableofcontents
\appendix
\section{alpha}
\section{beta}
\section{gamma}
\subsection{alfa}
\subsection{bravo}
\begingroup\def\addcontentsline#1#2#3\relax\subsubsection{FIRST}\endgroup
#include <iostream>
using namespace std;
class c {
public:
c() : c_(NULL) { cout << "c(" << c_ << ") this=" << this << endl; }
c(const c& c) : c_(&c) { cout << "c(" << c_ << ") this=" << this << endl; }
~c() { cout << "~c(" << c_ << ") this=" << this << endl; }
int f() { cout << "c(" << c_ << ").f() this=" << this << endl; return 0; }
private:
const c* c_;
template<typename T> class x {};
//typedef x xx;
class y {
void x() {}
x<int> z;
};