- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 7,746 for map0 (0.07 sec)
-
src/internal/types/testdata/check/map0.go
key K val V left, right *node[K, V] } // New returns a new map. func New[K, V any](compare func(K, K) int) *Map[K, V] { return &Map[K, V]{compare: compare} } // find looks up key in the map, and returns either a pointer // to the node holding key, or a pointer to the location where // such a node would go. func (m *Map[K, V]) find(key K) **node[K, V] { pn := &m.root for *pn != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 2.8K bytes - Viewed (0) -
test/escape_map.go
m[&i] = &j return m[&i] } func map2() map[*int]*int { m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) escapes to heap" i := 0 // ERROR "moved to heap: i" j := 0 // ERROR "moved to heap: j" m[&i] = &j return m } func map3() []*int { m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) does not escape"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 12 08:31:49 UTC 2020 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR); assertEquals(Collections.emptyMap(), map); assertSame(SOME_COMPARATOR, map.comparator()); } public void testTreeMapWithInitialMap() { SortedMap<Integer, Integer> map = Maps.newTreeMap(); map.put(5, 10); map.put(3, 20); map.put(1, 30); TreeMap<Integer, Integer> copy = Maps.newTreeMap(map); assertEquals(copy, map);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 67.1K bytes - Viewed (0) -
pkg/maps/maps.go
// limitations under the License. package maps import "maps" // nolint: depguard // Equal reports whether two maps contain the same key/value pairs. // Values are compared using ==. func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool { return maps.Equal(m1, m2) } // Clone returns a copy of the map. // The elements are copied using assignment, so this is a shallow clone.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 01 22:48:35 UTC 2024 - 2.5K bytes - Viewed (0) -
src/maps/maps.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package maps defines various functions useful with maps of any type. package maps import ( _ "unsafe" ) // Equal reports whether two maps contain the same key/value pairs. // Values are compared using ==. func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool { if len(m1) != len(m2) { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 20:35:05 UTC 2024 - 1.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/Maps.java
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
implements MapDifference<K, V> { final Map<K, V> onlyOnLeft; final Map<K, V> onlyOnRight; final Map<K, V> onBoth; final Map<K, ValueDifference<V>> differences; MapDifferenceImpl( Map<K, V> onlyOnLeft, Map<K, V> onlyOnRight, Map<K, V> onBoth, Map<K, ValueDifference<V>> differences) { this.onlyOnLeft = unmodifiableMap(onlyOnLeft);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 165.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
implements MapDifference<K, V> { final Map<K, V> onlyOnLeft; final Map<K, V> onlyOnRight; final Map<K, V> onBoth; final Map<K, ValueDifference<V>> differences; MapDifferenceImpl( Map<K, V> onlyOnLeft, Map<K, V> onlyOnRight, Map<K, V> onBoth, Map<K, ValueDifference<V>> differences) { this.onlyOnLeft = unmodifiableMap(onlyOnLeft);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sun Jun 02 13:36:19 UTC 2024 - 159.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/Maps.kt
*/ package org.gradle.kotlin.dsl.support internal fun excludeMapFor(group: String?, module: String?): Map<String, String> = mapOfNonNullValuesOf( "group" to group, "module" to module ) internal fun mapOfNonNullValuesOf(vararg entries: Pair<String, String?>): Map<String, String> = mutableMapOf<String, String>().apply { for ((k, v) in entries) { if (v != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.1K bytes - Viewed (0) -
test/typeparam/maps.go
} // _Equal reports whether two maps contain the same key/value pairs. // _Values are compared using ==. func _Equal[K, V comparable](m1, m2 map[K]V) bool { if len(m1) != len(m2) { return false } for k, v1 := range m1 { if v2, ok := m2[k]; !ok || v1 != v2 { return false } } return true } // _Copy returns a copy of m. func _Copy[K comparable, V any](m map[K]V) map[K]V { r := make(map[K]V, len(m))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0)