Skip to content

Instantly share code, notes, and snippets.

Marlon Etheredge ofx

  • The Netherlands
Block or report user

Report or block ofx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bwiklak
bwiklak / rle.cpp
Created Apr 6, 2012
RLE encoding in C++
View rle.cpp
template< typename C >
string rle( const C& input )
{
stringstream out;
typedef C::const_iterator::value_type el_tyle;
pair<C::const_iterator,C::const_iterator> bounds;
bounds.second=input.begin();
while( (bounds.first=bounds.second)!=input.end() )
{
You can’t perform that action at this time.