< prev index next >

src/hotspot/share/utilities/tuple.hpp

Print this page
*** 1,7 ***
  /*
! * Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.
--- 1,7 ---
  /*
! * Copyright (c) 2023, 2026, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

*** 38,10 ***
--- 38,12 ---
  private:
    T _first;
    Tuple<Ts...> _remaining;
  
  public:
+   constexpr explicit Tuple() noexcept : _first(), _remaining() {}
+ 
    constexpr Tuple(const T& first, const Ts&... remaining) noexcept
      : _first(first), _remaining(remaining...) {}
  
    template <std::size_t I, std::enable_if_t<(I > 0), int> = 0>
    constexpr const auto& get() const noexcept {
< prev index next >