File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ extension RangeReplaceableCollection {
45
45
/// container when each element is copied in O(1). Note that this might not
46
46
/// be true for certain C++ types, e.g. those with a custom copy
47
47
/// constructor that performs additional logic.
48
+ @inlinable
48
49
public init < C: CxxConvertibleToCollection > ( _ elements: C )
49
50
where C. RawIterator. Pointee == Element {
50
51
@@ -62,6 +63,7 @@ extension SetAlgebra {
62
63
/// container when each element is copied in O(1). Note that this might not
63
64
/// be true for certain C++ types, e.g. those with a custom copy
64
65
/// constructor that performs additional logic.
66
+ @inlinable
65
67
public init < C: CxxConvertibleToCollection > ( _ elements: C )
66
68
where C. RawIterator. Pointee == Element {
67
69
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public protocol CxxSet<Element> {
18
18
}
19
19
20
20
extension CxxSet {
21
+ @inlinable
21
22
public func contains( _ element: Element ) -> Bool {
22
23
return count ( element) > 0
23
24
}
You can’t perform that action at this time.
0 commit comments