2
0
mirror of https://github.com/boostorg/chrono.git synced 2026-01-30 19:52:14 +00:00
Files
chrono/test/rep.h
Vicente J. Botet Escriba c183fb72fd Boost.Chrono: Moved to trunk
[SVN r67698]
2011-01-06 00:47:42 +00:00

32 lines
940 B
C++

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// Adaptation to Boost of the libcxx
// Copyright 2010 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#ifndef REP_H
#define REP_H
class Rep
{
public:
int data_;
Rep() : data_(-1) {}
explicit Rep(int i) : data_(i) {}
bool operator==(int i) const {return data_ == i;}
bool operator==(const Rep& r) const {return data_ == r.data_;}
Rep& operator*=(Rep x) {data_ *= x.data_; return *this;}
Rep& operator/=(Rep x) {data_ /= x.data_; return *this;}
};
#endif // REP_H