Slip Ahead Logging

It's not your fault at all.

2012-01-12から1日間の記事一覧

boost::tie 的な

#include <iostream> template <typename T> class Tuple { T& wrapped_; public: Tuple(T& value): wrapped_(value) { } Tuple<T>& operator=(const T& rhs) { wrapped_ = rhs; return *this; } }; template <typename T> Tuple<T> tie(T& lhs) { return Tuple<T>(lhs); } int main(int argc, char** ar</t></t></typename></t></typename></iostream>…