why i can't find the definition of the function throw()?

LONG_PTR SetWindowLongPtr(int nIndex, LONG_PTR dwNewLong) throw()
{
ATLASSERT(::IsWindow(m_hWnd));
return ::SetWindowLongPtr(m_hWnd, nIndex, dwNewLong);
}

it is included in the <atlwin.h>,vs2003.net,please help me!




Answer this question

why i can't find the definition of the function throw()?

  • rKarthik

    It should be easy to find; see The try, catch, and throw Statements (C++). Eventhough it is a statement, not a function, it should be easy to find using the Help system provided with Visual Studio. What happens when you put the cursor on "throw" in the editor and press F1 You should be able to find the documentation that way.

    What do you mean by "included in the <ATLWIN.H>" Do you mean it is used there or something else



  • Tovdb

    Brian Kramer wrote:
    The throw() in this declaration is part of the C++ syntax. throw is not an identifier, hence there is no definition.
    I don't know what you mean by definition, but it is documented.

  • CV.

    This is what is known as an "exception specification" from more information you can look here.

    The specific syntax above tells the compiler that this function does not throw any exceptions.



  • Tex-Twil

    The throw() in this declaration is part of the C++ syntax.  throw is not an identifier, hence there is no definition.


  • why i can't find the definition of the function throw()?