11debfc3dSmrg // Reference-counted COW string instantiations -*- C++ -*- 21debfc3dSmrg 3*8feb0f0bSmrg // Copyright (C) 2014-2020 Free Software Foundation, Inc. 41debfc3dSmrg // 51debfc3dSmrg // This file is part of the GNU ISO C++ Library. This library is free 61debfc3dSmrg // software; you can redistribute it and/or modify it under the 71debfc3dSmrg // terms of the GNU General Public License as published by the 81debfc3dSmrg // Free Software Foundation; either version 3, or (at your option) 91debfc3dSmrg // any later version. 101debfc3dSmrg 111debfc3dSmrg // This library is distributed in the hope that it will be useful, 121debfc3dSmrg // but WITHOUT ANY WARRANTY; without even the implied warranty of 131debfc3dSmrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 141debfc3dSmrg // GNU General Public License for more details. 151debfc3dSmrg 161debfc3dSmrg // Under Section 7 of GPL version 3, you are granted additional 171debfc3dSmrg // permissions described in the GCC Runtime Library Exception, version 181debfc3dSmrg // 3.1, as published by the Free Software Foundation. 191debfc3dSmrg 201debfc3dSmrg // You should have received a copy of the GNU General Public License and 211debfc3dSmrg // a copy of the GCC Runtime Library Exception along with this program; 221debfc3dSmrg // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 231debfc3dSmrg // <http://www.gnu.org/licenses/>. 241debfc3dSmrg 251debfc3dSmrg // 261debfc3dSmrg // ISO C++ 14882: 21 Strings library 271debfc3dSmrg // 281debfc3dSmrg 291debfc3dSmrg #define _GLIBCXX_USE_CXX11_ABI 0 301debfc3dSmrg #include "string-inst.cc" 311debfc3dSmrg 321debfc3dSmrg #if ! _GLIBCXX_USE_DUAL_ABI 331debfc3dSmrg # error This file should not be compiled for this configuration. 341debfc3dSmrg #endif 351debfc3dSmrg 361debfc3dSmrg #ifdef _GLIBCXX_USE_C99_STDINT_TR1 371debfc3dSmrg #include <random> 381debfc3dSmrg 391debfc3dSmrg namespace std _GLIBCXX_VISIBILITY(default) 401debfc3dSmrg { 411debfc3dSmrg void _M_init(const std::string & token)421debfc3dSmrg random_device::_M_init(const std::string& token) 43*8feb0f0bSmrg { _M_init(token.c_str(), token.length()); } 441debfc3dSmrg 451debfc3dSmrg void _M_init_pretr1(const std::string & token)46*8feb0f0bSmrg random_device::_M_init_pretr1(const std::string& token) 47*8feb0f0bSmrg { _M_init(token.c_str(), token.length()); } 481debfc3dSmrg } // namespace 491debfc3dSmrg #endif 50