Skip to content

Commit bb6d607

Browse files
Eeliszygoloid
authored andcommitted
Add missing \tcode.
1 parent ee930ef commit bb6d607

File tree

11 files changed

+107
-107
lines changed

11 files changed

+107
-107
lines changed

source/algorithms.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@
13061306
int a[] = {1,2};
13071307
std::for_each(std::execution::par, std::begin(a), std::end(a), [&](int) {
13081308
x.fetch_add(1, std::memory_order_relaxed);
1309-
// spin wait for another iteration to change the value of x
1309+
// spin wait for another iteration to change the value of \tcode{x}
13101310
while (x.load(std::memory_order_relaxed) == 1) { } // incorrect: assumes execution order
13111311
});
13121312
\end{codeblock}

source/compatibility.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@
742742
\rationale
743743
When classes become complicated, allowing such a redefinition
744744
after the type has been used can create confusion for \Cpp
745-
programmers as to what the meaning of 'I' really is.
745+
programmers as to what the meaning of \tcode{I} really is.
746746
\effect
747747
Deletion of semantically well-defined feature.
748748
\difficulty

source/containers.tex

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@
838838
\tcode{a.emplace(p, args)} &
839839
\tcode{iterator} &
840840
\requires\ \tcode{T} is \tcode{EmplaceConstructible} into \tcode{X} from \tcode{args}. For \tcode{vector} and \tcode{deque},
841-
T is also
841+
\tcode{T} is also
842842
\tcode{MoveInsertable} into \tcode{X} and \tcode{MoveAssignable}.
843843
\effects\ Inserts an object of type \tcode{T} constructed with
844844
\tcode{std::forward<Args>(args)...} before \tcode{p}. \\ \rowsep
@@ -2882,7 +2882,7 @@
28822882
#include <initializer_list>
28832883

28842884
namespace std {
2885-
// \ref{array}, class template array
2885+
// \ref{array}, class template \tcode{array}
28862886
template <class T, size_t N> struct array;
28872887
template <class T, size_t N>
28882888
bool operator==(const array<T, N>& x, const array<T, N>& y);
@@ -2925,7 +2925,7 @@
29252925
#include <initializer_list>
29262926

29272927
namespace std {
2928-
// \ref{deque}, class template deque
2928+
// \ref{deque}, class template \tcode{deque}
29292929
template <class T, class Allocator = allocator<T>> class deque;
29302930
template <class T, class Allocator>
29312931
bool operator==(const deque<T, Allocator>& x, const deque<T, Allocator>& y);
@@ -2959,7 +2959,7 @@
29592959
#include <initializer_list>
29602960

29612961
namespace std {
2962-
// \ref{forwardlist}, class template forward_list
2962+
// \ref{forwardlist}, class template \tcode{forward_list}
29632963
template <class T, class Allocator = allocator<T>> class forward_list;
29642964
template <class T, class Allocator>
29652965
bool operator==(const forward_list<T, Allocator>& x, const forward_list<T, Allocator>& y);
@@ -2993,7 +2993,7 @@
29932993
#include <initializer_list>
29942994

29952995
namespace std {
2996-
// \ref{list}, class template list
2996+
// \ref{list}, class template \tcode{list}
29972997
template <class T, class Allocator = allocator<T>> class list;
29982998
template <class T, class Allocator>
29992999
bool operator==(const list<T, Allocator>& x, const list<T, Allocator>& y);
@@ -3027,7 +3027,7 @@
30273027
#include <initializer_list>
30283028

30293029
namespace std {
3030-
// \ref{vector}, class template vector
3030+
// \ref{vector}, class template \tcode{vector}
30313031
template <class T, class Allocator = allocator<T>> class vector;
30323032
template <class T, class Allocator>
30333033
bool operator==(const vector<T, Allocator>& x, const vector<T, Allocator>& y);
@@ -3045,7 +3045,7 @@
30453045
void swap(vector<T, Allocator>& x, vector<T, Allocator>& y)
30463046
noexcept(noexcept(x.swap(y)));
30473047

3048-
// \ref{vector.bool}, class vector<bool>
3048+
// \ref{vector.bool}, class \tcode{vector<bool>}
30493049
template <class Allocator> class vector<bool, Allocator>;
30503050

30513051
// hash support
@@ -3805,7 +3805,7 @@
38053805
void resize(size_type sz, const value_type& c);
38063806
void clear() noexcept;
38073807

3808-
// \ref{forwardlist.ops}, forward_list operations
3808+
// \ref{forwardlist.ops}, \tcode{forward_list} operations
38093809
void splice_after(const_iterator position, forward_list& x);
38103810
void splice_after(const_iterator position, forward_list&& x);
38113811
void splice_after(const_iterator position, forward_list& x,
@@ -5779,7 +5779,7 @@
57795779
#include <initializer_list>
57805780

57815781
namespace std {
5782-
// \ref{map}, class template map
5782+
// \ref{map}, class template \tcode{map}
57835783
template <class Key, class T, class Compare = default_order_t<Key>,
57845784
class Allocator = allocator<pair<const Key, T>>>
57855785
class map;
@@ -5806,7 +5806,7 @@
58065806
map<Key, T, Compare, Allocator>& y)
58075807
noexcept(noexcept(x.swap(y)));
58085808

5809-
// \ref{multimap}, class template multimap
5809+
// \ref{multimap}, class template \tcode{multimap}
58105810
template <class Key, class T, class Compare = default_order_t<Key>,
58115811
class Allocator = allocator<pair<const Key, T>>>
58125812
class multimap;
@@ -5854,7 +5854,7 @@
58545854
#include <initializer_list>
58555855

58565856
namespace std {
5857-
// \ref{set}, class template set
5857+
// \ref{set}, class template \tcode{set}
58585858
template <class Key, class Compare = default_order_t<Key>,
58595859
class Allocator = allocator<Key>>
58605860
class set;
@@ -5881,7 +5881,7 @@
58815881
set<Key, Compare, Allocator>& y)
58825882
noexcept(noexcept(x.swap(y)));
58835883

5884-
// \ref{multiset}, class template multiset
5884+
// \ref{multiset}, class template \tcode{multiset}
58855885
template <class Key, class Compare = default_order_t<Key>,
58865886
class Allocator = allocator<Key>>
58875887
class multiset;
@@ -7315,15 +7315,15 @@
73157315
#include <initializer_list>
73167316

73177317
namespace std {
7318-
// \ref{unord.map}, class template unordered_map
7318+
// \ref{unord.map}, class template \tcode{unordered_map}
73197319
template <class Key,
73207320
class T,
73217321
class Hash = hash<Key>,
73227322
class Pred = equal_to<Key>,
73237323
class Alloc = allocator<pair<const Key, T>>>
73247324
class unordered_map;
73257325

7326-
// \ref{unord.multimap}, class template unordered_multimap
7326+
// \ref{unord.multimap}, class template \tcode{unordered_multimap}
73277327
template <class Key,
73287328
class T,
73297329
class Hash = hash<Key>,
@@ -7383,14 +7383,14 @@
73837383
#include <initializer_list>
73847384

73857385
namespace std {
7386-
// \ref{unord.set}, class template unordered_set
7386+
// \ref{unord.set}, class template \tcode{unordered_set}
73877387
template <class Key,
73887388
class Hash = hash<Key>,
73897389
class Pred = equal_to<Key>,
73907390
class Alloc = allocator<Key>>
73917391
class unordered_set;
73927392

7393-
// \ref{unord.multiset}, class template unordered_multiset
7393+
// \ref{unord.multiset}, class template \tcode{unordered_multiset}
73947394
template <class Key,
73957395
class Hash = hash<Key>,
73967396
class Pred = equal_to<Key>,

source/declarators.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3722,7 +3722,7 @@
37223722
f( {"Nicholas","Annemarie"} ); // pass list of two elements
37233723
return { "Norah" }; // return list of one element
37243724
int* e {}; // initialization to zero / null pointer
3725-
x = double{1}; // explicitly construct a double
3725+
x = double{1}; // explicitly construct a \tcode{double}
37263726
std::map<std::string,int> anim = { {"bear",4}, {"cassowary",2}, {"tiger",7} };
37273727
\end{codeblock}
37283728
\end{example} \end{note}
@@ -4035,7 +4035,7 @@
40354035
list-initializations.\end{note} \begin{example}
40364036

40374037
\begin{codeblock}
4038-
int x = 999; // x is not a constant expression
4038+
int x = 999; // \tcode{x} is not a constant expression
40394039
const int y = 999;
40404040
const int z = 99;
40414041
char c1 = x; // OK, though it might narrow (in this case, it does narrow)
@@ -4049,10 +4049,10 @@
40494049
{ (unsigned int)-1 }; // error: narrows
40504050
int ii = {2.0}; // error: narrows
40514051
float f1 { x }; // error: might narrow
4052-
float f2 { 7 }; // OK: 7 can be exactly represented as a float
4052+
float f2 { 7 }; // OK: 7 can be exactly represented as a \tcode{float}
40534053
int f(int);
40544054
int a[] =
4055-
{ 2, f(2), f(2.0) }; // OK: the double-to-int conversion is not at the top level
4055+
{ 2, f(2), f(2.0) }; // OK: the \tcode{double}-to-\tcode{int} conversion is not at the top level
40564056
\end{codeblock}
40574057
\end{example}%
40584058
\indextext{initialization!list-initialization|)}%

source/iostreams.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10112,7 +10112,7 @@
1011210112
// \ref{class.path}, paths
1011310113
class path;
1011410114

10115-
// \ref{path.non-member}, path non-member functions
10115+
// \ref{path.non-member}, \tcode{path} non-member functions
1011610116
void swap(path& lhs, path& rhs) noexcept;
1011710117
size_t hash_value(const path& p) noexcept;
1011810118

@@ -10125,15 +10125,15 @@
1012510125

1012610126
path operator/ (const path& lhs, const path& rhs);
1012710127

10128-
// \ref{path.io}, path inserter and extractor
10128+
// \ref{path.io}, \tcode{path} inserter and extractor
1012910129
template <class charT, class traits>
1013010130
basic_ostream<charT, traits>&
1013110131
operator<<(basic_ostream<charT, traits>& os, const path& p);
1013210132
template <class charT, class traits>
1013310133
basic_istream<charT, traits>&
1013410134
operator>>(basic_istream<charT, traits>& is, path& p);
1013510135

10136-
// \ref{path.factory}, path factory functions
10136+
// \ref{path.factory}, \tcode{path} factory functions
1013710137
template <class Source>
1013810138
path u8path(const Source& source);
1013910139
template <class InputIterator>

source/numerics.tex

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,30 +2527,30 @@
25272527
#include <initializer_list>
25282528

25292529
namespace std {
2530-
// \ref{rand.eng.lcong}, class template linear_congruential_engine
2530+
// \ref{rand.eng.lcong}, class template \tcode{linear_congruential_engine}
25312531
template<class UIntType, UIntType a, UIntType c, UIntType m>
25322532
class linear_congruential_engine;
25332533

2534-
// \ref{rand.eng.mers}, class template mersenne_twister_engine
2534+
// \ref{rand.eng.mers}, class template \tcode{mersenne_twister_engine}
25352535
template<class UIntType, size_t w, size_t n, size_t m, size_t r,
25362536
UIntType a, size_t u, UIntType d, size_t s,
25372537
UIntType b, size_t t,
25382538
UIntType c, size_t l, UIntType f>
25392539
class mersenne_twister_engine;
25402540

2541-
// \ref{rand.eng.sub}, class template subtract_with_carry_engine
2541+
// \ref{rand.eng.sub}, class template \tcode{subtract_with_carry_engine}
25422542
template<class UIntType, size_t w, size_t s, size_t r>
25432543
class subtract_with_carry_engine;
25442544

2545-
// \ref{rand.adapt.disc}, class template discard_block_engine
2545+
// \ref{rand.adapt.disc}, class template \tcode{discard_block_engine}
25462546
template<class Engine, size_t p, size_t r>
25472547
class discard_block_engine;
25482548

2549-
// \ref{rand.adapt.ibits}, class template independent_bits_engine
2549+
// \ref{rand.adapt.ibits}, class template \tcode{independent_bits_engine}
25502550
template<class Engine, size_t w, class UIntType>
25512551
class independent_bits_engine;
25522552

2553-
// \ref{rand.adapt.shuf}, class template shuffle_order_engine
2553+
// \ref{rand.adapt.shuf}, class template \tcode{shuffle_order_engine}
25542554
template<class Engine, size_t k>
25552555
class shuffle_order_engine;
25562556

@@ -2567,92 +2567,92 @@
25672567

25682568
using default_random_engine = @\seebelow@;
25692569

2570-
// \ref{rand.device}, class random_device
2570+
// \ref{rand.device}, class \tcode{random_device}
25712571
class random_device;
25722572

2573-
// \ref{rand.util.seedseq}, class seed_seq
2573+
// \ref{rand.util.seedseq}, class \tcode{seed_seq}
25742574
class seed_seq;
25752575

2576-
// \ref{rand.util.canonical}, function template generate_canonical
2576+
// \ref{rand.util.canonical}, function template \tcode{generate_canonical}
25772577
template<class RealType, size_t bits, class URBG>
25782578
RealType generate_canonical(URBG& g);
25792579

2580-
// \ref{rand.dist.uni.int}, class template uniform_int_distribution
2580+
// \ref{rand.dist.uni.int}, class template \tcode{uniform_int_distribution}
25812581
template<class IntType = int>
25822582
class uniform_int_distribution;
25832583

2584-
// \ref{rand.dist.uni.real}, class template uniform_real_distribution
2584+
// \ref{rand.dist.uni.real}, class template \tcode{uniform_real_distribution}
25852585
template<class RealType = double>
25862586
class uniform_real_distribution;
25872587

2588-
// \ref{rand.dist.bern.bernoulli}, class bernoulli_distribution
2588+
// \ref{rand.dist.bern.bernoulli}, class \tcode{bernoulli_distribution}
25892589
class bernoulli_distribution;
25902590

2591-
// \ref{rand.dist.bern.bin}, class template binomial_distribution
2591+
// \ref{rand.dist.bern.bin}, class template \tcode{binomial_distribution}
25922592
template<class IntType = int>
25932593
class binomial_distribution;
25942594

2595-
// \ref{rand.dist.bern.geo}, class template geometric_distribution
2595+
// \ref{rand.dist.bern.geo}, class template \tcode{geometric_distribution}
25962596
template<class IntType = int>
25972597
class geometric_distribution;
25982598

2599-
// \ref{rand.dist.bern.negbin}, class template negative_binomial_distribution
2599+
// \ref{rand.dist.bern.negbin}, class template \tcode{negative_binomial_distribution}
26002600
template<class IntType = int>
26012601
class negative_binomial_distribution;
26022602

2603-
// \ref{rand.dist.pois.poisson}, class template poisson_distribution
2603+
// \ref{rand.dist.pois.poisson}, class template \tcode{poisson_distribution}
26042604
template<class IntType = int>
26052605
class poisson_distribution;
26062606

2607-
// \ref{rand.dist.pois.exp}, class template exponential_distribution
2607+
// \ref{rand.dist.pois.exp}, class template \tcode{exponential_distribution}
26082608
template<class RealType = double>
26092609
class exponential_distribution;
26102610

2611-
// \ref{rand.dist.pois.gamma}, class template gamma_distribution
2611+
// \ref{rand.dist.pois.gamma}, class template \tcode{gamma_distribution}
26122612
template<class RealType = double>
26132613
class gamma_distribution;
26142614

2615-
// \ref{rand.dist.pois.weibull}, class template weibull_distribution
2615+
// \ref{rand.dist.pois.weibull}, class template \tcode{weibull_distribution}
26162616
template<class RealType = double>
26172617
class weibull_distribution;
26182618

2619-
// \ref{rand.dist.pois.extreme}, class template extreme_value_distribution
2619+
// \ref{rand.dist.pois.extreme}, class template \tcode{extreme_value_distribution}
26202620
template<class RealType = double>
26212621
class extreme_value_distribution;
26222622

2623-
// \ref{rand.dist.norm.normal}, class template normal_distribution
2623+
// \ref{rand.dist.norm.normal}, class template \tcode{normal_distribution}
26242624
template<class RealType = double>
26252625
class normal_distribution;
26262626

2627-
// \ref{rand.dist.norm.lognormal}, class template lognormal_distribution
2627+
// \ref{rand.dist.norm.lognormal}, class template \tcode{lognormal_distribution}
26282628
template<class RealType = double>
26292629
class lognormal_distribution;
26302630

2631-
// \ref{rand.dist.norm.chisq}, class template chi_squared_distribution
2631+
// \ref{rand.dist.norm.chisq}, class template \tcode{chi_squared_distribution}
26322632
template<class RealType = double>
26332633
class chi_squared_distribution;
26342634

2635-
// \ref{rand.dist.norm.cauchy}, class template cauchy_distribution
2635+
// \ref{rand.dist.norm.cauchy}, class template \tcode{cauchy_distribution}
26362636
template<class RealType = double>
26372637
class cauchy_distribution;
26382638

2639-
// \ref{rand.dist.norm.f}, class template fisher_f_distribution
2639+
// \ref{rand.dist.norm.f}, class template \tcode{fisher_f_distribution}
26402640
template<class RealType = double>
26412641
class fisher_f_distribution;
26422642

2643-
// \ref{rand.dist.norm.t}, class template student_t_distribution
2643+
// \ref{rand.dist.norm.t}, class template \tcode{student_t_distribution}
26442644
template<class RealType = double>
26452645
class student_t_distribution;
26462646

2647-
// \ref{rand.dist.samp.discrete}, class template discrete_distribution
2647+
// \ref{rand.dist.samp.discrete}, class template \tcode{discrete_distribution}
26482648
template<class IntType = int>
26492649
class discrete_distribution;
26502650

2651-
// \ref{rand.dist.samp.pconst}, class template piecewise_constant_distribution
2651+
// \ref{rand.dist.samp.pconst}, class template \tcode{piecewise_constant_distribution}
26522652
template<class RealType = double>
26532653
class piecewise_constant_distribution;
26542654

2655-
// \ref{rand.dist.samp.plinear}, class template piecewise_linear_distribution
2655+
// \ref{rand.dist.samp.plinear}, class template \tcode{piecewise_linear_distribution}
26562656
template<class RealType = double>
26572657
class piecewise_linear_distribution;
26582658
}

0 commit comments

Comments
 (0)