From Jason Turner

[global.functions]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpjmuqtw0a/{from.md → to.md} +22 -15
tmp/tmpjmuqtw0a/{from.md → to.md} RENAMED
@@ -1,29 +1,36 @@
1
- #### Global and non-member functions <a id="global.functions">[[global.functions]]</a>
2
 
3
- It is unspecified whether any global or non-member functions in the
4
- C++standard library are defined as `inline` ([[dcl.fct.spec]]).
5
 
6
- A call to a global or non-member function signature described in
7
- Clauses  [[language.support]] through  [[thread]] and Annex  [[depr]]
8
- shall behave as if the implementation declared no additional global or
9
- non-member function signatures.[^27]
10
 
11
- An implementation shall not declare a global or non-member function
12
- signature with additional default arguments.
13
 
14
- Unless otherwise specified, global and non-member functions in the
15
- standard library shall not use functions from another namespace which
16
- are found through *argument-dependent name lookup* (
17
- [[basic.lookup.argdep]]). The phrase “unless otherwise specified” is
18
- intended to allow argument-dependent lookup in cases like that of
19
- `ostream_iterator::operator=` ([[ostream.iterator.ops]]):
 
 
 
 
 
20
 
21
  *Effects:*
22
 
23
  ``` cpp
24
  *out_stream << value;
25
  if (delim != 0)
26
  *out_stream << delim;
27
  return *this;
28
  ```
29
 
 
 
 
1
+ #### Non-member functions <a id="global.functions">[[global.functions]]</a>
2
 
3
+ It is unspecified whether any non-member functions in the C++standard
4
+ library are defined as `inline` ([[dcl.inline]]).
5
 
6
+ A call to a non-member function signature described in Clauses 
7
+ [[language.support]] through  [[thread]] and Annex  [[depr]] shall
8
+ behave as if the implementation declared no additional non-member
9
+ function signatures.[^26]
10
 
11
+ An implementation shall not declare a non-member function signature with
12
+ additional default arguments.
13
 
14
+ Unless otherwise specified, calls made by functions in the standard
15
+ library to non-operator, non-member functions do not use functions from
16
+ another namespace which are found through *argument-dependent name
17
+ lookup* ([[basic.lookup.argdep]]).
18
+
19
+ [*Note 1*:
20
+
21
+ The phrase “unless otherwise specified” applies to cases such as the
22
+ swappable with requirements ([[swappable.requirements]]). The exception
23
+ for overloaded operators allows argument-dependent lookup in cases like
24
+ that of `ostream_iterator::operator=` ([[ostream.iterator.ops]]):
25
 
26
  *Effects:*
27
 
28
  ``` cpp
29
  *out_stream << value;
30
  if (delim != 0)
31
  *out_stream << delim;
32
  return *this;
33
  ```
34
 
35
+ — *end note*]
36
+