Skip to content

Commit 086bbd4

Browse files
authored
Clean up dedents in standard library references
1 parent cc6f72e commit 086bbd4

14 files changed

+68
-67
lines changed

docs/standard-library/allocator-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ int main( )
396396
// vcref = 150;
397397
// but the value of the first element could be modified through
398398
// its nonconst iterator and the const reference would remain valid
399-
*vfIter = 175;
399+
*vfIter = 175;
400400
cout << "The value of the element referred to by vcref,"
401401
<<"\n after nofication through its nonconst iterator, is: "
402402
<< vcref << "." << endl;
@@ -1024,7 +1024,7 @@ int main( )
10241024

10251025
vfIter = v.begin( );
10261026
allocator<double>::value_type vecVal = 150.0;
1027-
*vfIter = vecVal;
1027+
*vfIter = vecVal;
10281028
cout << "The value of the element addressed by vfIter is: "
10291029
<< *vfIter << ",\n the first element in the vector." << endl;
10301030

docs/standard-library/back-insert-iterator-class.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ int main( )
103103
104104
// Alternatively, insertions can be done with template function
105105
back_insert_iterator<vector<int> > backiter ( vec );
106-
*backiter = 600;
106+
*backiter = 600;
107107
backiter++;
108-
*backiter = 700;
108+
*backiter = 700;
109109
110110
cout << "After the insertions, the vector vec is: ( ";
111111
for ( vIter = vec.begin ( ) ; vIter != vec.end ( ); vIter++)
@@ -216,9 +216,9 @@ int main( )
216216
cout << ")." << endl;
217217

218218
back_insert_iterator<vector<int> > backiter ( vec );
219-
*backiter = 10;
219+
*backiter = 10;
220220
backiter++; // Increment to the next element
221-
*backiter = 20;
221+
*backiter = 20;
222222
backiter++;
223223

224224
cout << "After the insertions, the vector vec becomes: ( ";
@@ -277,9 +277,9 @@ int main( )
277277
cout << ")." << endl;
278278

279279
back_insert_iterator<vector<int> > backiter ( vec );
280-
*backiter = 30;
280+
*backiter = 30;
281281
backiter++; // Increment to the next element
282-
*backiter = 40;
282+
*backiter = 40;
283283
backiter++;
284284

285285
cout << "After the insertions, the vector vec becomes: ( ";
@@ -349,9 +349,9 @@ int main( )
349349
cout << ")." << endl;
350350

351351
back_insert_iterator<vector<int> > backiter ( vec );
352-
*backiter = 10;
352+
*backiter = 10;
353353
backiter++; // Increment to the next element
354-
*backiter = 20;
354+
*backiter = 20;
355355
backiter++;
356356

357357
cout << "After the insertions, the vector vec becomes: ( ";

docs/standard-library/basic-string-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ int main( ) {
760760
cout << "The full original string str1 is: " << str1 << endl;
761761

762762
// The dereferenced iterator can be used to modify a character
763-
*str1_Iter = 'G';
763+
*str1_Iter = 'G';
764764
cout << "The first character of the modified str1 is now: "
765765
<< *str1_Iter << endl;
766766
cout << "The full modified string str1 is now: " << str1 << endl;

docs/standard-library/deque-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ int main( )
354354
c1_Iter = c1.begin( );
355355
cout << "The first element of c1 is " << *c1_Iter << endl;
356356

357-
*c1_Iter = 20;
357+
*c1_Iter = 20;
358358
c1_Iter = c1.begin( );
359359
cout << "The first element of c1 is now " << *c1_Iter << endl;
360360

@@ -1604,7 +1604,7 @@ template<typename MyDeque> struct S<MyDeque&&> {
16041604
MyDeque::const_iterator iter;
16051605
for (iter = d.cbegin(); iter != d.cend(); iter++)
16061606
cout << *iter << " ";
1607-
cout << " via unnamed rvalue reference " << endl;
1607+
cout << " via unnamed rvalue reference " << endl;
16081608
}
16091609
};
16101610

docs/standard-library/front-insert-iterator-class.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ int main( )
254254

255255
list<int> L1;
256256
front_insert_iterator<list<int> > iter ( L1 );
257-
*iter = 10;
257+
*iter = 10;
258258
iter++;
259-
*iter = 20;
259+
*iter = 20;
260260
iter++;
261-
*iter = 30;
261+
*iter = 30;
262262
iter++;
263263

264264
list <int>::iterator vIter;
@@ -316,11 +316,11 @@ int main( )
316316

317317
list<int> L1;
318318
front_insert_iterator<list<int> > iter ( L1 );
319-
*iter = 10;
319+
*iter = 10;
320320
iter++;
321-
*iter = 20;
321+
*iter = 20;
322322
iter++;
323-
*iter = 30;
323+
*iter = 30;
324324
iter++;
325325

326326
list <int>::iterator vIter;

docs/standard-library/insert-iterator-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ int main( )
267267
cout << ")." << endl;
268268

269269
insert_iterator<vector<int> > ii ( vec, vec.begin ( ) );
270-
*ii = 30;
270+
*ii = 30;
271271
ii++;
272-
*ii = 40;
272+
*ii = 40;
273273
ii++;
274-
*ii = 50;
274+
*ii = 50;
275275

276276
cout << "After the insertions, the vector vec becomes:\n ( ";
277277
for ( vIter = vec.begin ( ) ; vIter != vec.end ( ); vIter++ )

docs/standard-library/istreambuf-iterator-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ int main( )
341341
ostreambuf_iterator<char> outpos ( cout );
342342
while ( inpos != endpos )
343343
{
344-
*outpos = *inpos;
344+
*outpos = *inpos;
345345
++inpos; //Increment istreambuf_iterator
346346
++outpos;
347347
}

docs/standard-library/less-struct.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ int main() {
8080
8181
cout << "Original vector v1 = ( " ;
8282
for ( Iter1 = v1.begin() ; Iter1 != v1.end() ; Iter1++ )
83-
cout << Iter1->m_i << " ";
83+
cout << Iter1->m_i << " ";
8484
cout << ")" << endl;
8585
8686
// To sort in ascending order,
8787
sort( v1.begin( ), v1.end( ), less<MyStruct>());
8888
8989
cout << "Sorted vector v1 = ( " ;
9090
for ( Iter1 = v1.begin() ; Iter1 != v1.end() ; Iter1++ )
91-
cout << Iter1->m_i << " ";
91+
cout << Iter1->m_i << " ";
9292
cout << ")" << endl;
9393
}
9494
```

docs/standard-library/list-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ int main( )
303303
c1_Iter = c1.begin( );
304304
cout << "The first element of c1 is " << *c1_Iter << endl;
305305

306-
*c1_Iter = 20;
306+
*c1_Iter = 20;
307307
c1_Iter = c1.begin( );
308308
cout << "The first element of c1 is now " << *c1_Iter << endl;
309309

@@ -851,7 +851,7 @@ int main( )
851851
cout << "The last integer of c1 is " << *c1_Iter << endl;
852852

853853
c1_Iter--;
854-
*c1_Iter = 400;
854+
*c1_Iter = 400;
855855
cout << "The new next-to-last integer of c1 is "
856856
<< *c1_Iter << endl;
857857

@@ -1754,7 +1754,7 @@ int main( )
17541754
cout << endl;
17551755

17561756
c1_rIter = c1.rbegin( );
1757-
*c1_rIter = 40;
1757+
*c1_rIter = 40;
17581758
cout << "The last element in the list is now " << *c1_rIter << "." << endl;
17591759
}
17601760
```

docs/standard-library/locale-functions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,10 @@ int main( )
903903
{
904904
locale loc1 ( "German_Germany" ), loc2 ( "English_Australia" );
905905
bool result1 = use_facet<ctype<char> > ( loc1 ).is(
906-
ctype_base::alpha, 'a'
907-
);
908-
bool result2 = use_facet<ctype<char> > ( loc2 ).is( ctype_base::alpha, '!'
906+
ctype_base::alpha, 'a'
907+
);
908+
bool result2 = use_facet<ctype<char> > ( loc2 ).is(
909+
ctype_base::alpha, '!'
909910
);
910911
911912
if ( result1 )

0 commit comments

Comments
 (0)