2004-08-21から1日間の記事一覧

STLもどき

昨日の続きで実装を進めてみました。まずは、IArithmeticインタフェースですが、一応最終形id:ladybugさんのコメントを見て気が変わりました。(^^; public interface IArithmetic<T> where T : IComparable, IFormattable, IConvertible, IComparable<T> { T Add(T</t></t>…

力業Tuple

BoostのTupleを真似てみました。 #region Using directives using System; using System.Collections.Generic; using STL.Generic; using Result = STL.Generic.Tuple<int, int, int, double>; #endregion class Program { // 型なしタプル static Tuple Calc4_1(int x, int y) { re</int,>…