14d5abbe8Smrg // Reference-counted COW string instantiations -*- C++ -*- 24d5abbe8Smrg 3*b1e83836Smrg // Copyright (C) 2014-2022 Free Software Foundation, Inc. 44d5abbe8Smrg // 54d5abbe8Smrg // This file is part of the GNU ISO C++ Library. This library is free 64d5abbe8Smrg // software; you can redistribute it and/or modify it under the 74d5abbe8Smrg // terms of the GNU General Public License as published by the 84d5abbe8Smrg // Free Software Foundation; either version 3, or (at your option) 94d5abbe8Smrg // any later version. 104d5abbe8Smrg 114d5abbe8Smrg // This library is distributed in the hope that it will be useful, 124d5abbe8Smrg // but WITHOUT ANY WARRANTY; without even the implied warranty of 134d5abbe8Smrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 144d5abbe8Smrg // GNU General Public License for more details. 154d5abbe8Smrg 164d5abbe8Smrg // Under Section 7 of GPL version 3, you are granted additional 174d5abbe8Smrg // permissions described in the GCC Runtime Library Exception, version 184d5abbe8Smrg // 3.1, as published by the Free Software Foundation. 194d5abbe8Smrg 204d5abbe8Smrg // You should have received a copy of the GNU General Public License and 214d5abbe8Smrg // a copy of the GCC Runtime Library Exception along with this program; 224d5abbe8Smrg // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 234d5abbe8Smrg // <http://www.gnu.org/licenses/>. 244d5abbe8Smrg 254d5abbe8Smrg // 264d5abbe8Smrg // ISO C++ 14882: 21 Strings library 274d5abbe8Smrg // 284d5abbe8Smrg 294d5abbe8Smrg #define _GLIBCXX_USE_CXX11_ABI 0 304d5abbe8Smrg #include "string-inst.cc" 314d5abbe8Smrg 324d5abbe8Smrg #if ! _GLIBCXX_USE_DUAL_ABI 334d5abbe8Smrg # error This file should not be compiled for this configuration. 344d5abbe8Smrg #endif 354d5abbe8Smrg 364d5abbe8Smrg #ifdef _GLIBCXX_USE_C99_STDINT_TR1 374d5abbe8Smrg #include <random> 384d5abbe8Smrg 394d5abbe8Smrg namespace std _GLIBCXX_VISIBILITY(default) 404d5abbe8Smrg { 414d5abbe8Smrg void _M_init(const std::string & token)424d5abbe8Smrg random_device::_M_init(const std::string& token) 43fb8a8121Smrg { _M_init(token.c_str(), token.length()); } 444d5abbe8Smrg 454d5abbe8Smrg void _M_init_pretr1(const std::string & token)46fb8a8121Smrg random_device::_M_init_pretr1(const std::string& token) 47fb8a8121Smrg { _M_init(token.c_str(), token.length()); } 484d5abbe8Smrg } // namespace 494d5abbe8Smrg #endif 50