This file contains hidden or 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 <locale> | |
#include <vector> | |
static int index() | |
{ | |
static int idx = std::ios_base::xalloc(); | |
return idx; | |
} |
This file contains hidden or 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> | |
bool is_substring_of(const std::string& substr, const std::string& str) | |
{ | |
auto it = substr.begin(); | |
for (auto const& c : str) | |
{ | |
if (c == *it) |
This file contains hidden or 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 <locale> | |
#include <string> | |
template <class Facet> | |
struct erasable_facet : Facet | |
{ | |
erasable_facet() : Facet(0) { } | |
~erasable_facet() { } | |
}; |
This file contains hidden or 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 <locale> | |
template <class Facet> | |
struct erasable_facet : Facet | |
{ | |
erasable_facet() : Facet(0) { } | |
~erasable_facet() { } | |
}; |
This file contains hidden or 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 <vector> | |
#include <string> | |
#include <sstream> | |
template <class Facet> | |
struct erasable_facet : Facet | |
{ | |
erasable_facet() : Facet(0) { } | |
~erasable_facet() { } |
This file contains hidden or 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 <vector> | |
template <class T, class CharT = char, class Traits = std::char_traits<char>> | |
class array_iterator : public std::iterator<std::output_iterator_tag, | |
void, void, void, void> | |
{ | |
public: | |
array_iterator(T* list) | |
: array(list) { } |
This file contains hidden or 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 <limits> | |
#include <string> | |
#include <fstream> | |
namespace utility | |
{ | |
class stream_ok | |
{ | |
public: |
This file contains hidden or 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 <vector> | |
#include <utility> | |
#include <algorithm> | |
#include <string> | |
std::string longest_alpha_substr(const std::string& str) | |
{ | |
char last = str[0]; | |
int size = 1; |
This file contains hidden or 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 <locale> | |
#include <typeinfo> | |
#include <map> | |
template<class charT> | |
class address | |
{ | |
template<class CharT> |
This file contains hidden or 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 <locale> | |
#include <sstream> | |
template< | |
class charT, | |
class iter_type, | |
class string_iterator_type | |
> |
OlderNewer