@@ -752,6 +752,9 @@ extension Slice {
752
752
///
753
753
/// - Precondition: `self.count` >= `source.count`
754
754
///
755
+ /// - Note: The memory regions referenced by `source` and this buffer slice
756
+ /// must not overlap.
757
+ ///
755
758
/// - Parameter source: A collection of elements to be used to
756
759
/// initialize the buffer slice's storage.
757
760
/// - Returns: The index one past the last element of the buffer slice
@@ -818,6 +821,9 @@ extension Slice {
818
821
/// `startIndex`. If `source` contains as many elements as the buffer slice
819
822
/// can hold, the returned index is the buffer slice's `endIndex`.
820
823
///
824
+ /// - Note: The memory regions referenced by `source` and this buffer slice
825
+ /// may overlap.
826
+ ///
821
827
/// - Precondition: `self.count` >= `source.count`
822
828
///
823
829
/// - Parameter source: A collection of elements to be used to update
@@ -853,11 +859,13 @@ extension Slice {
853
859
/// slice's `startIndex`. If `source` contains as many elements as the slice
854
860
/// can hold, the returned index is equal to the slice's `endIndex`.
855
861
///
862
+ /// - Note: The memory regions referenced by `source` and this buffer slice
863
+ /// may overlap.
864
+ ///
856
865
/// - Precondition: `self.count` >= `source.count`
857
866
///
858
867
/// - Parameter source: A buffer containing the values to copy.
859
- /// The memory region underlying `source` must be initialized. The memory
860
- /// regions referenced by `source` and this buffer may overlap.
868
+ /// The memory region underlying `source` must be initialized.
861
869
/// - Returns: The index one past the last element of the buffer slice
862
870
/// initialized by this function.
863
871
@inlinable
@@ -890,11 +898,13 @@ extension Slice {
890
898
/// slice's `startIndex`. If `source` contains as many elements as the slice
891
899
/// can hold, the returned index is equal to the slice's `endIndex`.
892
900
///
901
+ /// - Note: The memory regions referenced by `source` and this buffer slice
902
+ /// may overlap.
903
+ ///
893
904
/// - Precondition: `self.count` >= `source.count`
894
905
///
895
906
/// - Parameter source: A buffer slice containing the values to copy.
896
- /// The memory region underlying `source` must be initialized. The memory
897
- /// regions referenced by `source` and this buffer slice may overlap.
907
+ /// The memory region underlying `source` must be initialized.
898
908
/// - Returns: The index one past the last element of the buffer slice
899
909
/// initialized by this function.
900
910
@inlinable
@@ -925,11 +935,13 @@ extension Slice {
925
935
/// buffer's `startIndex`. If `source` contains as many elements as the buffer
926
936
/// slice can hold, the returned index is equal to the slice's `endIndex`.
927
937
///
938
+ /// - Note: The memory regions referenced by `source` and this buffer slice
939
+ /// must not overlap.
940
+ ///
928
941
/// - Precondition: `self.count` >= `source.count`
929
942
///
930
943
/// - Parameter source: A buffer containing the values to move.
931
- /// The memory region underlying `source` must be initialized. The memory
932
- /// regions referenced by `source` and this buffer slice must not overlap.
944
+ /// The memory region underlying `source` must be initialized.
933
945
/// - Returns: An index one past the index of the last element updated.
934
946
@inlinable
935
947
@_alwaysEmitIntoClient
@@ -959,11 +971,13 @@ extension Slice {
959
971
/// buffer's `startIndex`. If `source` contains as many elements as the buffer
960
972
/// slice can hold, the returned index is equal to the slice's `endIndex`.
961
973
///
974
+ /// - Note: The memory regions referenced by `source` and this buffer slice
975
+ /// must not overlap.
976
+ ///
962
977
/// - Precondition: `self.count` >= `source.count`
963
978
///
964
979
/// - Parameter source: A buffer slice containing the values to move.
965
- /// The memory region underlying `source` must be initialized. The memory
966
- /// regions referenced by `source` and this buffer slice must not overlap.
980
+ /// The memory region underlying `source` must be initialized.
967
981
/// - Returns: An index one past the index of the last element updated.
968
982
@inlinable
969
983
@_alwaysEmitIntoClient
0 commit comments