Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
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
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() ) | |
{ |
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
#!/bin/bash | |
# | |
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. | |
# | |
# NVIDIA Corporation and its licensors retain all intellectual property | |
# and proprietary rights in and to this software, related documentation | |
# and any modifications thereto. Any use, reproduction, disclosure or | |
# distribution of this software and related documentation without an express | |
# license agreement from NVIDIA Corporation is strictly prohibited. | |
# |