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
/* | |
// for this particular class, we don't want to do that: | |
struct A { | |
//... ctors etc | |
// (long) series of useful methods accessing private members | |
int method1(); | |
int method2(); | |
int method3(); | |
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
a^2 = ? | |
let a = 50 - b | |
just for fun cuz we can. see below | |
then | |
b = 50 - a | |
then | |
a^2 = (50 - b)^2 |
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
#include <boost/iterator/transform_iterator.hpp> | |
#include <boost/filesystem.hpp> | |
struct iterator | |
: public std::unary_function<char const*, boost::filesystem3::directory_entry const&> | |
{ | |
char const* operator()(boost::filesystem3::directory_entry const& p) const | |
{ | |
return p.path().c_str(); | |
} |
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
<?php | |
/** | |
* SplClassLoader implementation that implements the technical interoperability | |
* standards for PHP 5.3 namespaces and class names. | |
* | |
* http://groups.google.com/group/php-standards/web/final-proposal | |
* | |
* // Example which loads classes for the Doctrine Common package in the | |
* // Doctrine\Common namespace. |