1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Function template from_string</title> 5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Log v2"> 8<link rel="up" href="../../../log/reference.html#header.boost.log.trivial_hpp" title="Header <boost/log/trivial.hpp>"> 9<link rel="prev" href="to_string.html" title="Function template to_string"> 10<link rel="next" href="operator_idm46079581292128.html" title="Function template operator<<"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td></tr></table> 14<hr> 15<div class="spirit-nav"> 16<a accesskey="p" href="to_string.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../log/reference.html#header.boost.log.trivial_hpp"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="operator_idm46079581292128.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 17</div> 18<div class="refentry"> 19<a name="boost.log.trivial.from_string"></a><div class="titlepage"></div> 20<div class="refnamediv"> 21<h2><span class="refentrytitle">Function template from_string</span></h2> 22<p>boost::log::trivial::from_string — Parses enumeration value from string and returns <code class="computeroutput">true</code> on success and <code class="computeroutput">false</code> otherwise. </p> 23</div> 24<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 25<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../../log/reference.html#header.boost.log.trivial_hpp" title="Header <boost/log/trivial.hpp>">boost/log/trivial.hpp</a>> 26 27</span> 28<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> CharT<span class="special">></span> 29 <span class="keyword">bool</span> <span class="identifier">from_string</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span> str<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> len<span class="special">,</span> <span class="identifier">severity_level</span> <span class="special">&</span> lvl<span class="special">)</span><span class="special">;</span></pre></div> 30</div> 31<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 32<td align="left"></td> 33<td align="right"><div class="copyright-footer">Copyright © 2007-2019 Andrey Semashev<p> 34 Distributed under the Boost Software License, Version 1.0. (See accompanying 35 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>). 36 </p> 37</div></td> 38</tr></table> 39<hr> 40<div class="spirit-nav"> 41<a accesskey="p" href="to_string.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../log/reference.html#header.boost.log.trivial_hpp"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="operator_idm46079581292128.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 42</div> 43</body> 44</html> 45