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 <iostream> | |
#include <string> | |
#include <algorithm> | |
int main() { | |
std::string s = "xAAAyyByABCxGxZyIxGyyZI"; | |
std::cout << "Before: '" << s << "'" << std::endl; |
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 <iostream> | |
#include <typeinfo> | |
using namespace std; | |
template<typename FalseType, typename TrueType, bool condition> | |
struct ConditionalTypeSelector | |
{ | |
typedef void ResultType; | |
}; |
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
/* | |
* BitIndexConverter.hpp | |
* | |
* Created on: Dec 14, 2013 | |
* Author: user | |
*/ | |
#ifndef BITINDEXCONVERTER_HPP_ | |
#define BITINDEXCONVERTER_HPP_ |