This site requires javascript.
Android Code Search
file:androidx/compose/runtime/collection/MutableVector.kt function:MutableVector
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/collection/
MutableVector.kt
content_copy
Preview
1082:
1083:
1084:
*/
inline
fun
<
reified
T>
MutableVector
(capacity: Int =
16
) =
MutableVector(arrayOfNulls<T>(capacity),
0
)
1094:
1095:
1096:
@OptIn(ExperimentalContracts::
class
)
inline
fun
<
reified
T>
MutableVector
(size: Int,
noinline
init: (Int) -> T): MutableVector<T> {
contract { callsInPlace(init) }
1101:
1102:
1103:
/** Creates an empty [MutableVector] with a [capacity][MutableVector.ensureCapacity] of 16. */
inline
fun
<
reified
T>
mutableVector
Of() = MutableVector<T>()
1107:
1108:
1109:
*/
inline
fun
<
reified
T>
mutableVector
Of(
vararg
elements: T): MutableVector<T> {
return
MutableVector(elements
as
Array<T?>, elements.size)
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main