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
// element_or() | |
// container_element_or() | |
#include <map> | |
#include <vector> | |
/** | |
* return element of vector if present, def otherwise. | |
*/ | |
template< typename E, typename I, typename D > |
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
// Notes at bottom. | |
// catch_common.h ----------------------------- | |
#ifndef TWOBLUECUBES_CATCH_COMMON_H_INCLUDED | |
#define TWOBLUECUBES_CATCH_COMMON_H_INCLUDED | |
#define INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line ) name##line | |
#define INTERNAL_CATCH_UNIQUE_NAME_LINE( name, line ) INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line ) | |
#define INTERNAL_CATCH_UNIQUE_NAME( name ) INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __LINE__ ) |
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
// http://stackoverflow.com/a/5771273/437272 | |
#include <iosfwd> | |
namespace detail { | |
typedef char no; | |
typedef char yes[2]; | |
struct any_t { |
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
// | |
// Note: use _bstr_t. It's part of COM and present in VC6 and newer versions of Visual C++. | |
// It's an encapsulation of the BSTR string type that has a shared *C* API. It's used for | |
// interlanguage operability, so going between compiler/library versions is *not* a problem. | |
// | |
// Thanks to the kind people on the accu-general mailing list of http://accu.org/ | |
// | |
//============================================================================ | |
// String.h |
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
/* | |
* TestOpAssign-variations-variations.cpp | |
* | |
* Created by Martin on 4 October 2012. | |
* Copyright 2012 Universiteit Leiden. All rights reserved. | |
* | |
* Distributed under the Boost Software License, Version 1.0. (See accompanying | |
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
*/ |
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
/* | |
* TestOpAssign_Niels_Martin.cpp | |
* | |
* Created by Martin on 28 September 2012. | |
* Adapted by Niels Dekker, 1 Oct 2012 | |
* Copyright 2012 Universiteit Leiden. All rights reserved. | |
* | |
* Distributed under the Boost Software License, Version 1.0. (See accompanying | |
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
*/ |
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
/* | |
* TestOpAssign.cpp | |
* | |
* Created by Martin on 28 September 2012. | |
* Copyright 2012 Universiteit Leiden. All rights reserved. | |
* | |
* Distributed under the Boost Software License, Version 1.0. (See accompanying | |
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
*/ |
NewerOlder